Adds the scheduled job domain model

This commit is contained in:
BinaryAlley committed 2026-09-03 12:48:35 -07:00
1 parent 145fc77346
commit 7fbb4dc0d3
18 files changed
+796

No files matched your search

@@ -0,0 +1,17 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the types of schedules of scheduled jobs.
/// </summary>
public enum ScheduleType
{
/// <summary>
/// The scheduled job repeats with an interval measured in minutes.
/// </summary>
WithIntervalInMinutes,
/// <summary>
/// The scheduled job repeats daily at a fixed hour and minute.
/// </summary>
DailyAtHourAndMinute
}
@@ -0,0 +1,27 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the statuses of scheduled jobs.
/// </summary>
public enum ScheduledJobStatus
{
/// <summary>
/// The scheduled job was added, but its execution cycle was not started.
/// </summary>
Added,
/// <summary>
/// The execution cycle of the scheduled job is active, and the job is waiting for its next scheduled execution.
/// </summary>
Active,
/// <summary>
/// The task of the scheduled job is currently being executed.
/// </summary>
Running,
/// <summary>
/// The scheduled job finished its latest one time execution.
/// </summary>
Completed
}
@@ -0,0 +1,17 @@
namespace Lumina.Domain.SharedKernel.Common.Enums.Scheduling;
/// <summary>
/// Enumeration for the types of tasks a scheduled job can execute.
/// </summary>
public enum ScheduledTaskType
{
/// <summary>
/// The scheduled job scans all enabled media libraries.
/// </summary>
ScanMediaLibraries,
/// <summary>
/// The scheduled job cleans the temporary directory of the application.
/// </summary>
CleanTemporaryFiles
}