< Summary

Information
Class: Elsa.Workflows.Runtime.Options.BookmarkQueuePurgeOptions
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Options/BookmarkQueuePurgeOptions.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Ttl()100%11100%
get_BatchSize()100%11100%
get_MaxDeliveryAttempts()100%11100%
get_DeadLetterTtl()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Options/BookmarkQueuePurgeOptions.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime.Options;
 2
 3/// <summary>
 4/// Options for purging the bookmark queue.
 5/// </summary>
 6public class BookmarkQueuePurgeOptions
 7{
 8    /// <summary>
 9    /// The time-to-live for bookmark queue items.
 10    /// </summary>
 3311    public TimeSpan Ttl { get; set; } = TimeSpan.FromMinutes(1);
 12
 13    /// <summary>
 14    /// The number of records to clean up per sweep.
 15    /// </summary>
 4616    public int BatchSize { get; set; } = 1000;
 17
 18    /// <summary>
 19    /// The maximum number of failed delivery attempts before a queue item is moved to the dead-letter store.
 20    /// </summary>
 2221    public int MaxDeliveryAttempts { get; set; } = 3;
 22
 23    /// <summary>
 24    /// The time-to-live for bookmark queue dead-letter items.
 25    /// </summary>
 3326    public TimeSpan DeadLetterTtl { get; set; } = TimeSpan.FromDays(7);
 27}