Skip to content

Durable Function Host doesn't honor hubName value in host.json when FunctionsPreservedDependencies is used for Microsoft.Extensions.Options.dll #9761

Open

Description

Investigative information

Invocation: Local function app invocation.

Repro steps

  1. host.json with
    "hubName": "CustomTaskHubName"
  2. project.csproj file with
    <FunctionsPreservedDependencies Include="Microsoft.Extensions.Options.dll" />
  3. Run function locally (with --verbose?)
  4. Note that the HubName is using the default hub name: "TestHubName"

Expected behavior

hubName setting is honored

Actual behavior

hubName setting is not honored, but uses the default hub name.

Example output:

[2023-06-21T18:02:29.713Z] Starting task hub worker. Extension GUID 78d03c7c-9545-4d72-adf8-48bba35bbe97. InstanceId: . Function: . HubName: TestHubName. AppName: . SlotName: . ExtensionVersion: 2.9.5. SequenceNumber: 0.

Known workarounds

Don't use Options and don't copy the dll to the output folder using FunctionsPreservedDependencies.

Related information

Microsoft.Extensions.Options version is 7.0.0
Microsoft.Azure.WebJobs.Extensions.DurableTask version is 2.9.5

Tagging @davidmrdavid since he helped debug this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions