workflow-core icon indicating copy to clipboard operation
workflow-core copied to clipboard

Issue with persistence in .net 6.0

Open woutervs opened this issue 3 years ago • 0 comments

My team recently upgraded one of our microservices where we use workflow-core in combination with sql. <PackageReference Include="WorkflowCore" Version="3.6.2" /> <PackageReference Include="WorkflowCore.Persistence.SqlServer" Version="3.6.2" /> <PackageReference Include="WorkflowCore.Providers.Azure" Version="3.6.2" />

After the upgrade we noticed when starting a workflow: await workflowHost.StartWorkflow(settings.FlowId, data, $"{message.OrganisationId}::{message.CorrelationId}");

Only one row would be persisted to the execution pointer table in the database and the entry method on the builder would not be hit: public void Build(IWorkflowBuilder<RedactedData> builder) { builder .StartWith(data => {

Atm I don't have the time to go deep into the code and figure out what's going on. The only thing I tried was setting my exception settings to catch all common language runtime exceptions. But no exceptions were thrown.

When downgrading back to .net 5.0 without any change to the code the problem was resolved.

When my schedule clears up a bit I will take a closer look but in the mean time I'm already posting an issue here, maybe someone has an idea or a suggestion or even better, a solution!

woutervs avatar Feb 09 '22 16:02 woutervs