Edit

Share via


SqlWorkflowPersistenceService.EnableRetries Property

Definition

Gets or sets a value that specifies whether the SqlWorkflowPersistenceService retries committing a work batch.

public bool EnableRetries { get; set; }

Property Value

true if the service should retry committing the work batch; otherwise, false. The default is false.

Remarks

The following work items cannot be batched and any transaction retries must be handled through the EnableRetries property:

  • Polling for expired database timers.

  • Loading workflow instance states.

  • Reloading workflow instances when the workflow run-time engine starts.

  • Calling GetAllWorkflows.

Besides being set programmatically, this functionality can be enabled through a configuration file. For more information about how to set this property through a configuration file, see Workflow Configuration Files.

For general information about retrying work batch transactions, see Batching State Information in Workflows.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1