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.
17 lines
450 B
C#
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;
|
|
} |