refactor(dotnet): standardize scheduler state and definitions
Validators (Pushes and Pull Requests) / validate-ui-and-storage (push) Successful in 23s
Validators (Pushes and Pull Requests) / validate-core (push) Successful in 2m9s

This commit is contained in:
2026-07-13 00:08:28 +09:00
parent eb3a33f124
commit d7c106f292
3 changed files with 56 additions and 13 deletions
@@ -0,0 +1,26 @@
namespace QuantEngine.Web.Services;
public sealed record SchedulerJobDefinition(
string JobId,
string Cron,
string Description,
bool IsRecurring);
public sealed record SchedulerJobExecutionAudit(
string JobId,
string RunId,
string State,
string? Reason,
DateTimeOffset StartedAt,
DateTimeOffset? FinishedAt,
string? ResourceKey);
public static class SchedulerStates
{
public const string Pending = "PENDING";
public const string Running = "RUNNING";
public const string Succeeded = "SUCCEEDED";
public const string Failed = "FAILED";
public const string Retrying = "RETRYING";
public const string Blocked = "BLOCKED";
}