0
votes

I'm trying the specify task hub name for my durable function following the documentation.

Here are steps I've done:

host.json

{
    "version": "2.0",
    "extensions": {
        "durableTask": {
            "hubName": "%TaskHubName%"
        },
        // ...
    }
}

settings.json

{
    "Values": {
        "AzureWebJobsStorage": "connection string",
        "FUNCTIONS_WORKER_RUNTIME": "dotnet",
        "TaskHubName": "mytaskhub"
    }
    // ...
}

MyFunction.cs

public async Task<IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Function, "post", Route = "foo/bar")]
            [RequestBodyType(typeof(List<QueryParams>), "Query Parameters")] HttpRequest req,
            [OrchestrationClient(TaskHub = "%TaskHubName%")] DurableOrchestrationClient starter)

However I don't see any changes in my Azure Storage Account after running this function. What I'm doing wrong?

1
Are you facing this during local debugging or in deployed Azure app?krishg
I'm testing locally, but I set connection string to be pointing to Azure storage. When I used local storage emulator, nothing was happening eitherNikita Fedorov
In the Function Run method, you are passing DurableOrchestrationClient starter, is that a typo? In Function V2/3, it should be IDurableOrchestrationClient starter (interface). docs.microsoft.com/en-us/azure/azure-functions/durable/…krishg

1 Answers

0
votes

I realized that I simply didn't update the tables list...everything is working, sorry for disruption.