refactor(dotnet): externalize scheduler definitions
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 16s
Validators (Pushes and Pull Requests) / validate-core (push) Has been cancelled

This commit is contained in:
2026-07-13 00:39:59 +09:00
parent 3fbb5ea2bf
commit c852ad49cf
4 changed files with 24 additions and 10 deletions
@@ -8,6 +8,17 @@ public sealed record SchedulerJobDefinition(
string Description,
bool IsRecurring);
public sealed record SchedulerServiceOptions
{
public List<SchedulerJobDefinition> JobDefinitions { get; init; } = new()
{
new SchedulerJobDefinition("daily-collection", "0 9 * * *", "Daily data collection", true),
new SchedulerJobDefinition("hourly-price-update", "0 9,11,13,15 * * 1-5", "Hourly price update", true),
new SchedulerJobDefinition("weekly-report", "0 17 * * 5", "Weekly report generation", true),
new SchedulerJobDefinition("monthly-optimization", "0 2 1 * *", "Monthly optimization", true),
};
}
public sealed record SchedulerJobExecutionAudit(
string JobId,
string RunId,