mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Completes the scheduled jobs module with default jobs, a themed scheduler page and aligned recovery semantics
This commit is contained in:
1 parent
99a6159f7f
commit
4b7cfbbe11
67 files changed
+3324
-745
No files matched your search
@@ -94,6 +94,14 @@ public static class ScheduledJobEntityMapping
|
||||
return Result.From<Schedule>(intervalScheduleResult.Value);
|
||||
}
|
||||
|
||||
if (repositoryEntity.ScheduleType == ScheduleType.OnceAtStartup)
|
||||
{
|
||||
Result<OnceAtStartupSchedule> onceAtStartupScheduleResult = OnceAtStartupSchedule.Create();
|
||||
if (onceAtStartupScheduleResult.IsFailure)
|
||||
return onceAtStartupScheduleResult.Errors;
|
||||
return Result.From<Schedule>(onceAtStartupScheduleResult.Value);
|
||||
}
|
||||
|
||||
Result<DailySchedule> dailyScheduleResult = DailySchedule.Create(repositoryEntity.Hour ?? 0, repositoryEntity.Minute ?? 0);
|
||||
if (dailyScheduleResult.IsFailure)
|
||||
return dailyScheduleResult.Errors;
|
||||
|
||||
Reference in new issue
Block a user