Skip to content

Orchestrator function backup record in Azure Table stays in Running state #1797

Answered by ConnorMcMahon
romangobrey asked this question in Q&A
Discussion options

You must be logged in to vote

Your orchestration function is violating our code restraints, specifically the "async APIs" code restraint. The only async calls you should make inside your orchestration are on Tasks created via IDurableOrchestrationContext APIs (or helper methods that themselves follow the orchestration code restraints).

If you want to make asynchronous calls, especially those doing IO like IDurableOrchestrationClient, you need to wrap those calls inside of an activity function.

Our Durable Functions analyzer should have generated warnings for this. Do you see these warnings, and if not, what version of the nuget package are you using?

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@romangobrey
Comment options

@davidmrdavid
Comment options

@romangobrey
Comment options

@amdeel
Comment options

@romangobrey
Comment options

Answer selected by romangobrey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants