Added inital job entity and services. Added released works API integration.
All checks were successful
ci / build-test (push) Successful in 2m21s
ci / publish-image (push) Successful in 2m19s

This commit is contained in:
2026-03-27 01:32:39 -04:00
parent 1c016ac62e
commit d9e421178f
36 changed files with 5596 additions and 43 deletions

View File

@@ -0,0 +1,33 @@
using JSMR.Domain.Enums;
namespace JSMR.Domain.Entities;
public sealed class Job
{
public int Id { get; set; }
public string Code { get; set; } = null!;
public JobStatus Status { get; set; }
public string? RequestedByUserId { get; set; }
public string RequestedSource { get; set; } = "Manual";
public string? ParametersJson { get; set; }
public DateTime CreatedUtc { get; set; }
public DateTime? StartedUtc { get; set; }
public DateTime? CompletedUtc { get; set; }
public DateTime? HeartbeatUtc { get; set; }
public string? WorkerName { get; set; }
public string? CurrentStep { get; set; }
public int? ProgressCurrent { get; set; }
public int? ProgressTotal { get; set; }
public string? ResultSummary { get; set; }
public string? Error { get; set; }
public bool CancellationRequested { get; set; }
public int AttemptCount { get; set; }
}