WorkflowInstance aborts on save

I have instances of a workflow running in WorkflowServiceHost

. The workflow is built like a state machine. I'm using out of the box SqlWorkflowPersistenceService

, configured with UnloadOnIdle = true

and an instance lock time of 5 minutes (tried different values ​​here).

These workflow instances take a long time to run while waiting for a message, which can take many hours or days.

I am having a problem that if a workflow instance is waiting for a message, that message should arrive within the lock time (date in the InstanceState table) or after receiving the message, the instance breaks down as soon as the next persistence point hits .

I always thought that the blocking time should be equal to or greater than the maximum. duration between savepoints. It looks like when a message is received by a workflow instance the lock time is not updated in the InstanceState table.

Any ideas what can be done?

+1


a source to share





All Articles