2024-11-26 19:37:41 +00:00
|
|
|
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>
|
2026-06-21 17:58:09 +00:00
|
|
|
public TimeSpan Ttl { get; set; } = TimeSpan.FromMinutes(10);
|
2024-11-26 19:37:41 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The number of records to clean up per sweep.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int BatchSize { get; set; } = 1000;
|
2026-05-21 21:43:36 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The maximum number of failed delivery attempts before a queue item is moved to the dead-letter store.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MaxDeliveryAttempts { get; set; } = 3;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The time-to-live for bookmark queue dead-letter items.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TimeSpan DeadLetterTtl { get; set; } = TimeSpan.FromDays(7);
|
|
|
|
|
}
|