elsa-core/src/modules/Elsa.Workflows.Runtime/Options/BookmarkQueuePurgeOptions.cs
Sipke Schoorstra d74159d594 Add bookmark queue purging and ExecuteWorkflow stimulus
Introduce BookmarkQueuePurgeOptions and ExecuteWorkflowStimulus classes for managing workflow queue purging and stimulus handling. Implement related handler and activity modifications to support waiting for child workflows and purging old bookmark queue entries.
2024-11-26 20:35:41 +01:00

17 lines
450 B
C#

namespace Elsa.Workflows.Runtime.Options;
/// <summary>
/// Options for purging the bookmark queue.
/// </summary>
public class BookmarkQueuePurgeOptions
{
/// <summary>
/// The time-to-live for bookmark queue items.
/// </summary>
public TimeSpan Ttl { get; set; } = TimeSpan.FromSeconds(10);
/// <summary>
/// The number of records to clean up per sweep.
/// </summary>
public int BatchSize { get; set; } = 1000;
}