Orchestrator function backup record in Azure Table stays in Running state #1797
-
Hello @cgillum, I have a simple trigger function and orchestrator.
Thank you for help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 If you want to make asynchronous calls, especially those doing IO like 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? |
Beta Was this translation helpful? Give feedback.
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
Task
s created viaIDurableOrchestrationContext
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?