| | 1 | | namespace Kestrun.Scheduling; |
| | 2 | |
|
| | 3 | | /// <summary> |
| | 4 | | /// Represents a scheduled task with its configuration and state. |
| | 5 | | /// </summary> |
| | 6 | | /// <param name="Name">The name of the scheduled task.</param> |
| | 7 | | /// <param name="LastRunAt">The last time the task was run.</param> |
| | 8 | | /// <param name="NextRunAt">The next scheduled run time for the task.</param> |
| | 9 | | /// <param name="IsSuspended">Indicates whether the task is currently suspended.</param> |
| | 10 | | /// <param name="IsCompleted">Indicates whether the scheduling loop has exited (task fully cancelled).</param> |
| | 11 | | /// <remarks> |
| | 12 | | /// This class encapsulates the details of a scheduled task, including its name, last run time, |
| | 13 | | /// next run time, and whether it is currently suspended. It is used internally by the scheduler |
| | 14 | | /// to manage and report on scheduled tasks. |
| | 15 | | /// </remarks> |
| 79 | 16 | | public sealed record JobInfo(string Name, |
| 49 | 17 | | DateTimeOffset? LastRunAt, |
| 31 | 18 | | DateTimeOffset NextRunAt, |
| 3 | 19 | | bool IsSuspended, |
| 42 | 20 | | bool IsCompleted = false); |