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

Azure Durable Function error handling: Is there a way to identify which retry you are on?

The Durable Functions documentation specifies the following pattern to set up automatic handling of retries when an exception is raised within an activity function: public static async Task Run(DurableOrchestrationContext context) { var…
pcdev
  • 2,852
  • 2
  • 23
  • 39
3
votes
1 answer

Where is the state in Azure Durable Function?

I'm building an Azure Durable Function App, it is triggered by Timer 1 time per day. For some reason, I want to persist state (e.g. A token, or an array) from previous run, is that possible? A lot of official docs will start with Azure Durable…
Ethan Wang
  • 85
  • 2
  • 11
3
votes
1 answer

How to pass object from trigger to orchestra and activity functions

I have HTTP trigger which invokes orchestra function. In HTTP trigger function I receive json string which I deserialize into object . However I have no idea how to pass this object to orchestra function or activity functions. I have tried to…
data
  • 55
  • 2
  • 8
3
votes
1 answer

401 Unauthorized when querying durable function status

I need some help with Azure Durable Functions. I created a new durable function with VS Code in C# and deployed it to Azure via the VS Code azure function extension. The function app resource was already created manually in the portal. I use…
pjoerger
  • 33
  • 4
3
votes
1 answer

How to load azure activity function from a referenced nuget package

I've implemented an Azure durable function which as you know contains my Orchestration, Orchestrator and Activities. the point is one of my activities is implemented in another assembly and I referenced it as a nuget package. Now the problem is…
Mohammad Nikravesh
  • 947
  • 1
  • 8
  • 27
3
votes
2 answers

How to return a stream from an Azure Function?

I am trying to write an Azure Function v2 using dotnet core as part of a durable function. I want to create an activity function that reads a file from blob storage, decrypts it and returns the decrypted byte stream. I can create the decrypted…
Aidan
  • 4,783
  • 5
  • 34
  • 58
3
votes
1 answer

Durable Function Blob Trigger

I need help on writing durable function with blob trigger can any one help on this. I have already created a Blob Trigger function that will process any new file comes into the blob, now i need to migrate the blob trigger function to durable…
R Kumar
  • 157
  • 1
  • 2
  • 12
3
votes
2 answers

Azure Durable Functions going to sleep

I have a durable azure function (2.0) that calls back on itself for an eternal orchestration, based on this article. Code below. This works fine and runs well for approx 20 minutes (say around 50 iterations). However, after this time it goes to…
Murray Foxcroft
  • 12,785
  • 7
  • 58
  • 86
3
votes
0 answers

Rhino Mock compatibility with .NetCore

I was working on Azure functions with.Net f/w and my unit test cases were running fine. Unit test cases were using Rhino Mock. After migrating it to.Net Core, these test cases are giving runtime exceptions. Some of the expceptions being…
Tarun Bhatt
  • 727
  • 2
  • 8
  • 28
3
votes
1 answer

Durable Functions - Awaitable Tasks inside Activity Function

I have a durable function that has inputs determined by a previous activity function For each activity function I have multiple awaitable tasks where each task is dependent on the previous task's output. This is my structure as…
Stanza
  • 485
  • 1
  • 4
  • 17
3
votes
2 answers

Huge Class 2 Queue operation count with Durable function

I've created my first big Durable Function in Azure, it runs about 12 activity functions for each page of a document. The other day I processed at most 5000 pages. I understand each activity puts an item on the work items Q so in theory I wrote 60k…
Simon
  • 1,613
  • 1
  • 12
  • 27
2
votes
0 answers

Azure Durable Function with BlobTrigger not working for large files

I have a requirement to upload large CSV files and process each record of the CSV by sending it to a 3rd party. The 3rd party can take minutes to process the records and there's a limitation of number of requests 3rd party can handle…
Nipuna
  • 6,846
  • 9
  • 64
  • 87
2
votes
1 answer

Unable to swap deployment slots

I have an Azure function with production and staging deployment slots. I see the swap failing due to the following error: Cannot swap site slots for site because the 'staging' slot did not respond to http ping. (CODE: 417) What am I missing?
2
votes
1 answer

Durable Functions Orchestrator template missing in Visual Studio 17.4 with .Net 7.0 SDK installed

I am running Visual Studio 17.4 on Windows 10 Pro and have installed the .NET 7.0 SDK I want to create a Durable Functions project, but I don't see the Durable Functions Orchestrator template in the list of templates when I try to add a New Azure…
2
votes
2 answers

Need to create service at runtime using ServiceProvider in an Azure Function

I have a tricky requirement where I need create copy of a service that has been created via Constructor DI in my Azure Function public MyFunction(IMyService myService, IServiceProvider serviceProvider, …
Paul
  • 2,773
  • 7
  • 41
  • 96