I am having an orchestration function which is managing some activities. I have a stopwatch to calculate the time taken to complete those activities. While running its reset the timer as the orchestration trigger keeps on replaying. Is there any solution for this.
Asked
Active
Viewed 757 times
2 Answers
0
You can check the history table of the durable Function and see the different timestamps for every step in the execution: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-checkpointing-and-replay
This also describes why you should not use things like Stopwatch in a durable Function.
-2
You should not use Stopwatch in Orchestrator function. If you want Start and complete time of your orchestrator function, you can directly check in "DurableFunctionHubInstance" table (Function Storage account).

Pankaj Rawat
- 4,037
- 6
- 41
- 73