Reputation: 4912
Let's say I have an Azure Function named func running. In the middle of func running, I deploy some new changes to the func. Will func finish the current run and then start with the new changes or will the current run just end?
Upvotes: 2
Views: 634
Reputation: 361
Maybe this can help you:
The reliable execution model of Durable Functions requires that orchestrations be deterministic, which creates an additional challenge to consider when you deploy updates. When a deployment contains changes to activity function signatures or orchestrator logic, in-flight orchestration instances fail. This situation is especially a problem for instances of long-running orchestrations, which might represent hours or days of work. To prevent these failures from happening, you have two options:
Delay your deployment until all running orchestration instances have completed.
Make sure that any running orchestration instances use the existing versions of your functions.
Upvotes: 1