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
2
votes
1 answer

I am getting issue while making post request to durable functions (extension of Azure Functions) from ADF and from Postman

I am able to call azure functions from ADF and postman but when I call durable functions from ADF or postman it gives me error: Operation on target Azure Function1 failed: Call to provided Azure function '' failed with status-'NotFound' and message…
2
votes
2 answers

"Multithreaded execution was detected" when using context.CallHttpAsyn

I have an OrchestrationTrigger function that call another service by http request. [FunctionName("MyFunc")] public async Task RunOrchestrator( [OrchestrationTrigger] IDurableOrchestrationContext context, ILogger logger) …
Margalit
  • 359
  • 1
  • 10
2
votes
1 answer

Durable function - activity function max. time out

What is the max. time out period of activity function which orchestrator function calls in Durable function on consumption hosting plan?
191180rk
  • 735
  • 2
  • 12
  • 37
2
votes
1 answer

A durable entity does not deserialize

I am trying to use a durable entity in my Azure Function to cache some data. However, when I try to retrieve the entity (state) for the first time, I get an exception indicating an issue during the entity deserialization. Here is my entity class…
ebhh2001
  • 2,034
  • 4
  • 18
  • 27
2
votes
2 answers

Azure Durable function for long running activity

I have a long running activity whose execution completion time will be more than 10 mins but it is single activity with many internal tasks. I want to run this long running activity as Azure Function on consumption plan but not on premium (or) on…
191180rk
  • 735
  • 2
  • 12
  • 37
2
votes
1 answer

Is durable functions suited for high amount of activities?

I have a scenario where I need to calculate 500k activities. All small calculations. Due to throttling I can only compute 30 simulataniously. Imagine following simple sample: [FunctionName("Crawl")] public static async Task>…
Thomas Segato
  • 4,567
  • 11
  • 55
  • 104
2
votes
1 answer

Azure Function App log streaming: only works intermittently

I have a Durable Function that I'm trying to view streaming logs for in the Azure Portal, but for some reason I can only seem to view logs perhaps one in every 10 or 20 times I try connecting to the log streaming service. When it doesn't work, it…
pcdev
  • 2,852
  • 2
  • 23
  • 39
2
votes
2 answers

Is there a way to view the status of a Durable Function Sub Orchestration?

I'm trying to find a way to view the status of a sub orchestration using statusQueryGetUri. Currently I can only see the custom status which was set when invoking the sub orchestration but would like to be able to see the status of the activities…
Lymedo
  • 576
  • 9
  • 21
2
votes
3 answers

Can I use a foreach loop in a durable function?

I've written my first durable function and I want to know if it possible / good practice to use a foreach loop within an orchestrator function? The first activity in the orchestration returns a list of project ids and I want to loop through the list…
Lymedo
  • 576
  • 9
  • 21
2
votes
1 answer

Azure Function v2 references a project with a higher version of Newtonsoft.Json than Microsoft.NET.Sdk.Functions

I am writing a v2 Azure Durable Function. When passing a C# object to a helper activity Function, I get a runtime error in my custom JsonConverterused in serializing the type being passed. The custom JsonConverter is in a library that must reference…
Scotty H
  • 6,432
  • 6
  • 41
  • 94
2
votes
1 answer

Using Task.Delay inside an Azure Durable Function Activity

Is it OK to use Task.Delay inside an Azure Durable Function Activity like this? I am polling storage for data that should arrive within 20-30 seconds or so. while (requestAccepted && retryCount < 8) { object savedData = await…
puri
  • 1,829
  • 5
  • 23
  • 42
2
votes
1 answer

Mock of IBinder fails when unit testing Activity Function

I am trying to test an activity function which has the following definition: [FunctionName(nameof(LoadReferenceFromBlobStorage))] public static async Task Run([ActivityTrigger] string blobName, IBinder binder, ILogger log) { …
phil
  • 1,938
  • 4
  • 23
  • 33
2
votes
1 answer

How to get an ILogger from an Activity Function?

I am using Durable Azure Function in a prototype for a future project. Basically, I have a Client Azure Function triggered by an HTTP POST request that starts the Orchestrator. Then, the Orchestrator decides to trigger an Activity. Nothing…
Kzryzstof
  • 7,688
  • 10
  • 61
  • 108
2
votes
1 answer

With the retry options in durable functions, what happens after the last attempt?

I'm using a durable function that's triggered off a queue. I'm sending messages off the queue to a service that is pretty flaky, so I set up the RetryPolicy. Even still, I'd like to be able to see the failed messages even if the max retries has been…
2
votes
1 answer

How to ensure that messages with the same Person Id are executed in singleton fashion while different ones are executed in Parallel?

I have an azure function which I want to process multiple messages in parallel but such that messages with the same Person Id are executed in singleton manner. Scenario 1: I have n number of messages each having the same Person Id. Every message…
tehmas
  • 164
  • 1
  • 8