Skip to content

Commit d6387c9

Browse files
authored
Merge pull request #203129 from cgillum/patch-17
Task Hub doc updates for deployment slots
2 parents 0906b05 + 422bf3c commit d6387c9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/azure-functions/durable/durable-functions-task-hubs.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Task hubs in Durable Functions - Azure
33
description: Learn what a task hub is in the Durable Functions extension for Azure Functions. Learn how to configure task hubs.
44
author: cgillum
55
ms.topic: conceptual
6-
ms.date: 05/10/2022
6+
ms.date: 06/28/2022
77
ms.author: azfuncdf
88
---
99

@@ -19,7 +19,7 @@ A *task hub* in [Durable Functions](durable-functions-overview.md) is a logical
1919
>
2020
> For more information on the various storage provider options and how they compare, see the [Durable Functions storage providers](durable-functions-storage-providers.md) documentation.
2121
22-
If multiple function apps share a storage account, each function app *must* be configured with a separate task hub name. A storage account can contain multiple task hubs. This restriction generally applies to other storage providers as well.
22+
If multiple function apps share a storage account, each function app *must* be configured with a separate task hub name. This requirement also applies to staging slots: each staging slot must be configured with a unique task hub name. A single storage account can contain multiple task hubs. This restriction generally applies to other storage providers as well.
2323

2424
> [!NOTE]
2525
> The exception to the task hub sharing rule is if you are configuring your app for regional disaster recovery. See the [disaster recovery and geo-distribution](durable-functions-disaster-recovery-geo-distribution.md) article for more information.
@@ -110,6 +110,9 @@ The task hub name will be set to the value of the `MyTaskHub` app setting. The f
110110
}
111111
```
112112

113+
> [!NOTE]
114+
> When using deployment slots, it's a best practice to configure the task hub name using app settings. If you want to ensure that a particular slot always uses a particular task hub, use ["slot-sticky" app settings](../functions-deployment-slots.md#create-a-deployment-setting).
115+
113116
In addition to **host.json**, task hub names can also be configured in [orchestration client binding](durable-functions-bindings.md#orchestration-client) metadata. This is useful if you need to access orchestrations or entities that live in a separate function app. The following code demonstrates how to write a function that uses the [orchestration client binding](durable-functions-bindings.md#orchestration-client) to work with a task hub that is configured as an App Setting:
114117

115118
# [C#](#tab/csharp)

0 commit comments

Comments
 (0)