Skip to content

Commit

Permalink
#813 JobStartArgs wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhabis committed Dec 30, 2022
1 parent e21b766 commit b4d5e2e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Azos.Sky/Jobs/JobStartArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public sealed class JobStartArgs : TransientModel
{
public const int MAX_TAG_COUNT = 32;
public const int MAX_STRAND_LEN = 250;
public const int MAX_DESCRIPTION_LEN = 100;

[Field(Required = true,
Description = "Unique JobId obtained from a call to `AllocateJobId()`. This job must not have started yet")]
Expand All @@ -45,6 +46,20 @@ public sealed class JobStartArgs : TransientModel
public DateTime? ScheduledStartUtc { get; set; }


[Field(Required = false,
Description = "What has caused this job to be created")]
public EntityId? Initiator { get; set; }

[Field(Required = false,
Description = "Optionally establishes an ownership of this job")]
public EntityId? Owner { get; set; }

[Field(Required = false,
MaxLength = MAX_DESCRIPTION_LEN,
Description = "Optionally provides a short job description")]
public string Description { get; set; }


[Field(Required = true,
Description = "Job start parameters. These values are immutable for the lifetime of a job instance " +
"(not to be confused with Job state which IS mutable)")]
Expand Down

0 comments on commit b4d5e2e

Please sign in to comment.