This commit is contained in:
2020-05-16 23:02:16 +00:00
parent 933b5ce459
commit 4ea7f3ff9a
6 changed files with 80 additions and 20 deletions

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Models
public DateTime Created { get; set; }
public uint Concurrency { get; set; }
[Required]
public string Name { get; set; }
@@ -27,10 +27,12 @@ namespace AyaNova.Models
public DateTime StartAfter { get; set; }
[Required]
public JobType JobType { get; set; }
public JobSubType SubType { get; set; }
public long ObjectId { get; set; }
public AyaType ObjectType { get; set; }
[Required]
public JobStatus JobStatus { get; set; }
/// <summary>
/// Json string of any required extra info for job
/// </summary>
@@ -45,6 +47,7 @@ namespace AyaNova.Models
Exclusive = false;
StartAfter = Created;
JobType = JobType.NotSet;
SubType = JobSubType.NotSet;
ObjectId = 0;
ObjectType = AyaType.NoType;
JobStatus = JobStatus.Sleeping;