< Summary

Information
Class: Elsa.Scheduling.Options.SchedulingOptions
Assembly: Elsa.Scheduling
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Options/SchedulingOptions.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_StartupSchedulePageSize()100%11100%
get_MinimumPastDueScheduleDelay()100%11100%
get_PastDueScheduleStaggerInterval()100%11100%
get_PastDueScheduleStaggerWindow()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Scheduling/Options/SchedulingOptions.cs

#LineLine coverage
 1namespace Elsa.Scheduling.Options;
 2
 3/// <summary>
 4/// Configures local scheduling behavior.
 5/// </summary>
 6public class SchedulingOptions
 7{
 8    /// <summary>
 9    /// The number of stored triggers and bookmarks to load per batch when rebuilding local schedules on startup.
 10    /// </summary>
 18911    public int StartupSchedulePageSize { get; set; } = 1000;
 12
 13    /// <summary>
 14    /// The minimum delay used when a specific-instant schedule is already due.
 15    /// </summary>
 11916    public TimeSpan MinimumPastDueScheduleDelay { get; set; } = TimeSpan.FromMilliseconds(1);
 17
 18    /// <summary>
 19    /// The spacing between past-due schedules during catch-up.
 20    /// </summary>
 11921    public TimeSpan PastDueScheduleStaggerInterval { get; set; } = TimeSpan.FromMilliseconds(50);
 22
 23    /// <summary>
 24    /// The bounded window over which past-due schedules are distributed.
 25    /// </summary>
 11926    public TimeSpan PastDueScheduleStaggerWindow { get; set; } = TimeSpan.FromMinutes(5);
 27}