Questions tagged [azure-durable-functions]

Durable Functions is an extension of Azure Functions and Azure WebJobs that lets you write stateful functions in a serverless environment. The extension manages state, checkpoints, and restarts for you.

Durable Functions is an extension of Azure Functions and Azure WebJobs that lets you write stateful functions in a serverless environment. The extension manages state, checkpoints, and restarts for you.

https://learn.microsoft.com/en-us/azure/azure-functions/durable-functions-overview

668 questions
3
votes
1 answer

How can I safely generate GUIDs within an Azure Durable Function?

I'm writing a Durable Function and need to generate some GUIDs. According to the documentation, you need to take extra care with this because GUID generation is not deterministic. When the orchestration is replayed, it should use the same GUID, and…
Glorfindel
  • 21,988
  • 13
  • 81
  • 109
3
votes
0 answers

Azure durable orchestration function doesn't exist, is disabled, or is not an orchestrator function

Azure Durable HttpStart failed at client.start_new(req.route_params["functionName"], None, None) function call. Function app works local develop environment, even in docker container. Once it's deployed to Azure Kubernetes Service, HttpStart…
3
votes
1 answer

Azure Durable entity functions to get & set timestamp info using timer trigger

I am trying to store the time stamp information in durable entities and retrieve it every time a trigger fired. Here is how I am doing it. I want the timestamp value set by the current execution to be available for the next trigger. But when the…
3
votes
1 answer

Use Azure Durable Function TaskHub name set from Azure App Configuration

Is it possible to set the TaskHub name for an Azure Durable Function from a value stored in the Azure App Configuration Service? My host.json file is: { "version": "2.0", "extensions": { "durableTask": { "hubName":…
3
votes
1 answer

Azure Functions (Durable) - Type is an interface or abstract class and cannot be instantiated

Problem I have a C# Durable Azure Functions app (v2) containing an orchestration and activity function. The orchestration calls the activity as follows: propBag.CE = await context.CallActivityAsync(nameof(GetCEByExternalIdActivity),…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
3
votes
1 answer

Durable Azure function binding types not registered when using dependency injection

I created a standard durable function based from visual studio "Add new function" to project. This works fine out of the box. Then I followed the steps here:…
ruffen
  • 1,695
  • 2
  • 25
  • 51
3
votes
3 answers

Using Durable Functions, how to return multiple values from an Activity Functions

I’m a big Domain Driven Design fan and developer, and am always attempting to map technology/architecture into the world of DDD. Mapping microservices to bounded contexts provides for a natural marriage. At the end of the day, I just want to focus…
3
votes
1 answer

moq durable function IDurableOrchestrationContext when Setup CallActivityAsync always returning a null

I have a Durable Orchestrator function which returns a list from an activity function: var returnList = await context.CallActivityAsync>("Activity", (input, context.InstanceId)); I have my xUnit Test setup as follows var mock = new…
Jody
  • 323
  • 2
  • 11
3
votes
2 answers

Azure function timeout

Planning to provision 'Queue triggered' based Azure function on Azure on consumption pricing model. On every invocation of this function it may be expected to run randomly anywhere between 1 min to 30 mins or even longer/shorter, it depends.…
3
votes
0 answers

Azure Entity function "never" returns

The following code enters GetIds method and never return. public static class ANameOrchestrator { [FunctionName(CommonNames.AName)] public static async Task Run([OrchestrationTrigger] IDurableOrchestrationContext context) { var…
Mx.Wolf
  • 578
  • 5
  • 13
3
votes
1 answer

How to abort [ActivityTrigger] function in Durable Functions

I have a [DurableOrchestrationClient] that starts a [OrchestrationTrigger] that starts a long running [ActivityTrigger] function. I know how to use TerminateAsync() to Terminate the [OrchestrationTrigger] from running. The problem is that…
Henrik
  • 243
  • 1
  • 3
  • 12
3
votes
1 answer

ILogger not Injected in Durable Functions v2.0

At the moment I'm trying to add an ILogger or ILogger<> to a Azure Durable Function so as to use logging in Activity Functions. Logging in the Orchestration Function works fine and is injected in the method itself, but attempts at constructor…
3
votes
3 answers

context.GetInput returns base class instead of specified derived class in $Type

Using Azure Durable Functions, I am trying to use the context.GetInput() function which returns the specified model. The model being used has a parameter that is another model which is a derived class. The model that is outputted from…
3
votes
1 answer

Durable Function not respecting Task Hub Name

I have 2 Durable Functions running on the same storage account - one has the default hub name while the other is specified in the host.json. Each Durable Function has a function named "RunOrchestrator" and it seems that when new jobs are added to…
David C
  • 501
  • 1
  • 4
  • 16
3
votes
2 answers

Azure functions - Unexplained storage account cost related to files

We are making use of Azure Functions (v2) extensively to fulfill a number of business requirements. We have recently introduced a durable function to handle a more complex business process which includes both fanning out, as well as a chain of…
MarkB
  • 1,783
  • 2
  • 17
  • 32