Rename Feedser to Concelier
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using StellaOps.Concelier.Core.Jobs;
|
||||
|
||||
namespace StellaOps.Concelier.WebService.Jobs;
|
||||
|
||||
public sealed record JobDefinitionResponse(
|
||||
string Kind,
|
||||
bool Enabled,
|
||||
string? CronExpression,
|
||||
TimeSpan Timeout,
|
||||
TimeSpan LeaseDuration,
|
||||
JobRunResponse? LastRun)
|
||||
{
|
||||
public static JobDefinitionResponse FromDefinition(JobDefinition definition, JobRunSnapshot? lastRun)
|
||||
{
|
||||
return new JobDefinitionResponse(
|
||||
definition.Kind,
|
||||
definition.Enabled,
|
||||
definition.CronExpression,
|
||||
definition.Timeout,
|
||||
definition.LeaseDuration,
|
||||
lastRun is null ? null : JobRunResponse.FromSnapshot(lastRun));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user