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

Upgrade Azure durable functions from 1.6.2 to 1.7.0 Nodejs

I have written some durable functions using version 1.6.2 . The new 1.7.0 is now out. I want to upgrade. Will just doing func extensions install -p Microsoft.Azure.WebJobs.Extensions.DurableTask -v 1.7.0 do the job? or do I need to do something…
Nafis Islam
  • 1,483
  • 1
  • 14
  • 34
0
votes
2 answers

Return object from async activity function Durable extension Azure Function Nodejs

In an activity function we return something by doing context.done(null, object); to the durable function where object is my target object to sent. but when i make my activity function async, i can not use context.done without context.done how can…
Nafis Islam
  • 1,483
  • 1
  • 14
  • 34
0
votes
2 answers

Azure Function automatic retry on failure UnhandledPromiseRejectionWarning

const fetch = require('node-fetch'); let url = 'something.com'; module.exports = function(context) { let a = fetch(url) a.then(res => { if(res.status!=200) throw new Error(res.statusText) else{ context.done(null, res.body); …
0
votes
1 answer

Automatic retry on failure, How to set Backoff coefficient

const df = require("durable-functions"); module.exports = df.orchestrator(function*(context) { const retryOptions = new df.RetryOptions(5000, 3); yield context.df.callActivityWithRetry("FlakyFunction", retryOptions); // ... }); There…
Nafis Islam
  • 1,483
  • 1
  • 14
  • 34
0
votes
1 answer

Durable Functions sub orchestration never returns to parent orchestration

I have a sub-orchestration that calls a couple activities. One of the activities is called ~150 times and each activity is put in a List of tasks then await Task.WhenAll(list). Each of these tasks returns a base64 encoded image so the messages are…
Dexterity
  • 41
  • 2
  • 7
0
votes
1 answer

DurableOrchestrationClient - return a result object

I have a DurableOrchestrationClient executing a a couple of Activity functions working on a ActivityMessage object - how to I get a handle on the updated ActivityMessage object in the starter function? e.g. Starter function: ActivityMessage am =…
phasse
  • 1
  • 1
0
votes
0 answers

Timer trigger in Durable Azure Functions

I have such initial azure function: [FunctionName("TriggerNoResponseFunction")] public static async Task Run( [TimerTrigger("0 */1 * * * *")] TimerInfo info, [OrchestrationClient] DurableOrchestrationClient starter) My…
0
votes
1 answer

Sharing one instance of the object between multiple azure function instances

I'm having situation where i need one instance of a object shared between multiple instances of Azure Function. Reason for this is that object internally is saving some state that I need, it is external library so I need to use it, no workaround…
Bida
  • 439
  • 1
  • 4
  • 13
0
votes
1 answer

Azure Functions Fail if in Directory

I've created a very simple durable function app for testing. It has 3 files (starter, orchestrator, activity) and a .csproj, along with the normal boilerplate (host.json, etc.) When the 4 main files are in the root, the function works great. I'm…
KJ3
  • 5,168
  • 4
  • 33
  • 53
0
votes
1 answer

Rollback database changes in a durable function

Let's say I have the following orchestration: [FunctionName("Orchestration")] public static async Task Orchestration_Start([OrchestrationTrigger] DurableOrchestrationContext ctx) { await ctx.CallActivityAsync("Foo"); await…
Maciej Stachowski
  • 1,708
  • 10
  • 19
0
votes
1 answer

How to pass a POST parameter to a Durable Function and then pass this param to a Timer Triggered function

using System; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; namespace mynamespace { public static class myfuncclass { [FunctionName("mydurablefunc")] public static async void Run([OrchestrationTrigger]…
nmrlqa4
  • 659
  • 1
  • 9
  • 32
0
votes
0 answers

Understanding clear about Diagnostics in Durable Functions

I'am working with Durable functions having 3 activities that executes one by one.All 3 activity executed one by one with any delayed, but since few days activities are not running at all and got stopped from executing.I see no exceptions and logs…
Kumari Dimple
  • 343
  • 2
  • 4
  • 14
0
votes
1 answer

Azure Activity function invoked multiple times

I have an orchestrator function calls suborchestration and that in turn calls an activity function. For some reason the activity function has been invoked multiple times. "KMA-Orch-DataRefreshOrchestration" -> "KMA-Orch-DataRefreshSubOrchestration"…
0
votes
1 answer

Parallel Durable Azure functions

I have a new durable function to replace a long running webjob and it works well and is faster than the former webjob however I have an issue with parallelism. I understand all activities go onto a central work item Q, what this means is that items…
Simon
  • 1,613
  • 1
  • 12
  • 27
0
votes
1 answer

Durable Function Keeps Executing

I have a durable function which doesn't appear to crash but after first invocation just keeps executing the same function. After this first invocation trying to set breakpoints has no effect. [30/11/2017 16:16:21] Function started…
phil
  • 1,938
  • 4
  • 23
  • 33
1 2 3
44
45