0

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.

suresh
  • 329
  • 2
  • 4
  • 8

2 Answers2

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.

Ian Kemp
  • 28,293
  • 19
  • 112
  • 138
silent
  • 14,494
  • 4
  • 46
  • 86
-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).

enter image description here

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