You can define multiple task hubs in your host.json file by using the durableTask extension. refer this link. Each task hub can have its own configuration, storage, and other settings.
host.json:
{
"version": "2.0",
"extensions": {
"durableTask": [
{
"hubName": "TaskHub1",
"storageProvider": "AzureStorage",
"partitionCount": 16,
"maxConcurrentActivityFunctions": 10,
"maxConcurrentOrchestratorFunctions": 10
},
{
"hubName": "TaskHub2",
"storageProvider": "AzureStorage",
"partitionCount": 16,
"maxConcurrentActivityFunctions": 10,
"maxConcurrentOrchestratorFunctions": 10
}
]
}
}
local.settings.json:

- Configured task hubs names as
TaskHub1 and TaskHub2. Each task hub uses the AzureStorage storage provider and has a partition count of 16. The maxConcurrentActivityFunctions and maxConcurrentOrchestratorFunctions 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:
