Let's say that the orchestrator takes 3 minutes to complete all its activities, but I trigger the orchestrator again after 2 minutes (with different input). Will the orchestrator cancel the first run or will it wait for the first run to be completed and then run the second run?
Asked
Active
Viewed 182 times
1 Answers
1
Will the orchestrator cancel the first run
No, Orchestration functions cannot cancel the previous running orchestration function.
Orchestration function can run quickly, so we can call the orchestration function quickly but when it comes to activity function it waits for the completion.
will it wait for the first run to be completed and then run the second run
Yes, it will wait for the first orchestration durable function to complete it tasks.
Because the Durable function uses the Azure storage. It keeps stores the whole runtime states in a storage.
As per the MSDOC Durable functions Performance and scale below activities are happens while running the Durable Function
- Function executions are stored in Azure storage Queues.
- Orchestration, Entity status and history stored in Azure Tables.
- Azure Blobs and blob leases are used to distribute orchestration instances and entities across multiple app instances.
Refer here for more information

Delliganesh Sevanesan
- 4,146
- 1
- 5
- 15