Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-Deterministic workflow detected #211

Open
bhugot opened this issue Apr 2, 2024 · 4 comments
Open

Non-Deterministic workflow detected #211

bhugot opened this issue Apr 2, 2024 · 4 comments
Assignees
Labels
Azure Functions This issue impacts Azure Functions

Comments

@bhugot
Copy link
Contributor

bhugot commented Apr 2, 2024

Hello,

We met this following error since Microsoft.DurableTask.SqlServer.AzureFunctions 1.2.2 :
Non-Deterministic workflow detected: A previous execution of this orchestration scheduled an activity task with sequence ID 0 and name 'SharedOperationsFunctions_CheckOperationStatus' (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?

Note that we also use "Microsoft.Data.SqlClient" Version="5.2.0"

Another rewind seems to fix it

@cgillum
Copy link
Member

cgillum commented Apr 2, 2024

@bhugot did you make any changes to your orchestrator code between the time it started and the time you upgraded to the v1.2.2 package? This exception normally happens when non-backwards compatible code changes are made that cause the existing history in the DB to no longer match the code.

@bhugot
Copy link
Contributor Author

bhugot commented Apr 2, 2024

Nope I did not that's why I posted this here :)

@cgillum cgillum self-assigned this Apr 2, 2024
@cgillum cgillum added Azure Functions This issue impacts Azure Functions and removed Needs: Triage 🔍 labels Apr 2, 2024
@cgillum
Copy link
Member

cgillum commented Apr 2, 2024

Just to confirm, is SharedOperationsFunctions_CheckOperationStatus the first task that gets scheduled in your orchestration?

@bhugot
Copy link
Contributor Author

bhugot commented Apr 3, 2024

Yes it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure Functions This issue impacts Azure Functions
Projects
None yet
Development

No branches or pull requests

2 participants