Azure / azure-functions-durable-extension

Durable Task Framework extension for Azure Functions
MIT License
714 stars 270 forks source link

Replaying orchestration history fails when using slot deployment #2632

Closed mitchellrust closed 1 year ago

mitchellrust commented 1 year ago

We have seen occasional orchestration failures during deployment to our function app, utilizing slot deployments. The error message is as follows:

Non-Deterministic workflow detected: A previous execution of this orchestration scheduled an activity task with sequence ID 0 and name 'DetectARInvoiceChanges' (version ''), but the current replay execution hasn't (yet?) scheduled this task. Was a change made to the orchestrator code after this instance had already started running?

This error occurs only sometimes when doing a slot deployment, and not always.

Here are some specific of our setup:

Based on the content of the error message, we believe that this failure occurs while the staging slot is replaying the orchestration history, and it cannot find the scheduled activity tasks that were executed on the production slot.

mitchellrust commented 1 year ago

This is duplicate of #2635, was opened on a different repo and didn't see that this was moved here, so I reopened as another issue. Closing this one as #2635 is more accurate.