Skip to content

Commit 76f56b3

Browse files
committed
fb
1 parent ae649c9 commit 76f56b3

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/ScheduledTasks/Models/ScheduleConfiguration.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ public TimeSpan Interval
9393
}
9494

9595
/// <summary>
96-
/// Gets or sets a value indicating whether gets or sets whether the schedule should start immediately if it's late.
96+
/// Gets or sets a value indicating whether to start the orchestration immediately when the current time is past the StartAt time.
97+
/// By default it is false.
98+
/// If false, the first run will be scheduled at the next interval based on the original start time.
99+
/// If true, the first run will start immediately and subsequent runs will follow the regular interval.
97100
/// </summary>
98101
public bool StartImmediatelyIfLate { get; set; }
99102

src/ScheduledTasks/Models/ScheduleCreationOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public record ScheduleCreationOptions
1111
/// <summary>
1212
/// Initializes a new instance of the <see cref="ScheduleCreationOptions"/> class.
1313
/// </summary>
14-
/// <param name="scheduleId">The ID of the schedule, or null to generate one.</param>
14+
/// <param name="scheduleId">The ID of the schedule.</param>
1515
/// <param name="orchestrationName">The name of the orchestration to schedule.</param>
1616
/// <param name="interval">The time interval between schedule executions. Must be at least 1 second and cannot be negative.</param>
1717
public ScheduleCreationOptions(string scheduleId, string orchestrationName, TimeSpan interval)

src/ScheduledTasks/Models/ScheduleDescription.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ public record ScheduleDescription
4646
public TimeSpan? Interval { get; init; }
4747

4848
/// <summary>
49-
/// Gets whether the schedule should run immediately if started late.
49+
/// Gets a value indicating whether to start the orchestration immediately when the current time is past the StartAt time.
50+
/// By default it is false.
51+
/// If false, the first run will be scheduled at the next interval based on the original start time.
52+
/// If true, the first run will start immediately and subsequent runs will follow the regular interval.
5053
/// </summary>
5154
public bool? StartImmediatelyIfLate { get; init; }
5255

src/ScheduledTasks/Models/ScheduleUpdateOptions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ public TimeSpan? Interval
6161
}
6262

6363
/// <summary>
64-
/// Gets or initializes whether the schedule should start immediately if it's late.
64+
/// Gets a value indicating whether to start the orchestration immediately when the current time is past the StartAt time.
65+
/// By default it is false.
66+
/// If false, the first run will be scheduled at the next interval based on the original start time.
67+
/// If true, the first run will start immediately and subsequent runs will follow the regular interval.
6568
/// </summary>
6669
public bool? StartImmediatelyIfLate { get; init; }
6770
}

0 commit comments

Comments
 (0)