DurableTaskClient.GetInstanceAsync is returning null
Opened this issue · 0 comments
Description
I am upgrading my .NET 6 Durable function app to .NET 8 .The overall function is working after the upgrade. There was a custom status endpoint which queries using the orchestration id ,that particular piece of code is not working. The DurableTaskClient GetInstanceAsync method invoked by passing the instance id is always returning null.
Expected behavior
Expected to retrieve the custom status set for the orchestration id
Actual behavior
the method call returns only null result
Relevant source code snippets
// insert code snippet here
[Function(nameof(ExportStatus))]
public async Task<IActionResult> Run(
[HttpTrigger(AuthorizationLevel.Function, methods: "get", Route = "sample/{instanceId}/status")]
HttpRequest req,
[DurableClient] DurableTaskClient orchestrationClient,
string instanceId)
{
var status = await orchestrationClient.GetInstanceAsync(instanceId, true);
if (status != null) {
}
}
Known workarounds
Provide a description of any known workarounds you used.
App Details
- Durable Functions extension version (e.g. v1.8.3):
- Azure Functions runtime version (1.0 or 2.0): v4
- Programming language used: C#
Screenshots
If applicable, add screenshots to help explain your problem.
If deployed to Azure
We have access to a lot of telemetry that can help with investigations. Please provide as much of the following information as you can to help us investigate!
- Timeframe issue observed:
- Function App name:
- Function name(s):
- Azure region:
- Orchestration instance ID(s):
- Azure storage account name:
If you don't want to share your Function App or storage account name GitHub, please at least share the orchestration instance ID. Otherwise it's extremely difficult to look up information.