I want to have 2 Durable Functions, that would use separated TaskHub's (different configurations, storage, etc). It's possible to use TaskHubName in the Function declaration, so it must be possible to define them in host.json. Just can't find any example how?
"extensions": {
"http": { "routePrefix": "" },
"durableTask": {
"hubName": "TaskHub1",
..
"hubName": "TaskHub2",
I tried to pass array in durableTask, but it's expecting an object.
You can define multiple task hubs in your
host.json
file by using thedurableTask
extension. refer this link. Each task hub can have its own configuration, storage, and other settings.host.json:
local.settings.json:
TaskHub1
andTaskHub2
. Each task hub uses theAzureStorage
storage provider and has a partition count of16
. ThemaxConcurrentActivityFunctions
andmaxConcurrentOrchestratorFunctions
settings specify the maximum number of activity and orchestrator functions that can run parallel.I can see that the function triggering both the storage accounts with different tasks assigned.
store2azoct10:
azoct10: