-
I'm trying to understand if this is by design or if there's any special config setting that I need. Here's my scenario:
And of course, the Host throwing is not the one that is supposed to contain the expected Function. I guess that the Func Hosts are all sharing the same queues on my local Storage Emulator, which is of course causing a "competing consumers" issue. Is there a solution to this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yeah, it sounds like your two function apps are sharing the same task hub and the same storage account (i.e. the same storage emulator instance). The simple work-around is to configure each of your function apps with a different task hub name in host.json. More info here: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-task-hubs?tabs=csharp {
"version": "2.0",
"extensions": {
"durableTask": {
"hubName": "TaskHubA"
}
}
} {
"version": "2.0",
"extensions": {
"durableTask": {
"hubName": "TaskHubB"
}
}
} |
Beta Was this translation helpful? Give feedback.
Yeah, it sounds like your two function apps are sharing the same task hub and the same storage account (i.e. the same storage emulator instance). The simple work-around is to configure each of your function apps with a different task hub name in host.json. More info here: https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-task-hubs?tabs=csharp