-
Hello, We have 2 separate durable functions to manage 2 different flows in a single functions app (single functions app instance when deployed). From what I have found in docs, every durable function should have a separate task hub assigned to it if all of them use a single storage account. However, I haven't found any specifics about how task hubs will behave in such scenarios. Questions:
In light of the ambiguities described above, maybe it would be good to add some further clarification on how task hubs work on https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-task-hubs?tabs=csharp page or some other page. Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The docs suggest having each function app be configured with its own task hub, not each function. Durable Functions only works correctly when multiple functions share the same task hub. This is mentioned in the task hub docs here.
It's not recommended (or possible?) to have a single function app interacting with multiple task hubs except when binding a durable client to another task hub for cross-app interactions. The way to enable this isn't host.json, but rather specifying the name of the task hub in the durable client binding. I don't think we allow orchestrator and activity functions to be configured in separate task hubs - these trigger bindings don't expose any task hub configuration. The configuration in host.json only applies to the single task hub used by orchestrator and activity functions across the app. I hope this helps clarify things. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer @cgillum. It answered all my questions |
Beta Was this translation helpful? Give feedback.
The docs suggest having each function app be configured with its own task hub, not each function. Durable Functions only works correctly when multiple functions share the same task hub. This is mentioned in the task hub docs here.
It's not recommended (or possible?) to have a single function app interacting with multiple task hubs except when binding a durable client to another task hub for cross-app interactions. The way to enable this isn't host.json, but rather specifying the name of the task hub in the durable client binding. I don't think we allow orchestra…