diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-03 23:07:57 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-03 23:07:57 +1000 |
| commit | c00992ffad24212c4398736efd6d707d4cb0cc0d (patch) | |
| tree | db954f836b6b8375f6fedcff0377910b9e281091 /src/marlin.core/models/Job.cs | |
| parent | 7c33b3f334cf91918add7af08866f2ea37ed9c3f (diff) | |
chore: fix initial commit
Diffstat (limited to 'src/marlin.core/models/Job.cs')
| -rw-r--r-- | src/marlin.core/models/Job.cs | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/marlin.core/models/Job.cs b/src/marlin.core/models/Job.cs index 269677d..6b09597 100644 --- a/src/marlin.core/models/Job.cs +++ b/src/marlin.core/models/Job.cs @@ -1,6 +1,42 @@ -namespace marlin.core; +namespace marlin.core.models; public class Job { + public Guid Id { get; set; } + public Guid SourceId { get; set; } + public VersionControlSource Source { get; set; } + public string Ref { get; set; } + public string Commit { get; set; } + + public string CreatedReason { get; set; } + public DateTime CreatedAt { get; set; } + public JobStatus Status { get; set; } + public ICollection<JobStatusUpdate> StatusUpdates { get; set; } + + public Guid AgentId { get; set; } + public Agent? Agent { get; set; } + + public string Recipe { get; set; } + // plan +} + +public class JobStatusUpdate +{ + public Guid Id { get; set; } + + public Guid JobId { get; set; } + public Job Job { get; set; } + + public DateTime At { get; set; } + public JobStatus Status { get; set; } +} + +public enum JobStatus +{ + Pending, + Active, + Cancelled, + Success, + Failed }
\ No newline at end of file |
