- Add ReactivatePipeline to handle subscription reactivation, including scaling Docker services, health verification, status updates, audit logging, and broadcasting status changes. - Introduce RotateCredentialsPipeline for OAuth2 credential rotation, managing the deletion of old apps, creation of new ones, credential storage, access verification, and audit logging. - Create StepRunner to manage job step execution, including lifecycle management and progress broadcasting via SignalR. - Implement SuspendPipeline for subscription suspension, scaling down services, updating statuses, logging audits, and broadcasting changes. - Add UpdateScreenLimitPipeline to update Xibo CMS screen limits and record snapshots. - Introduce XiboFeatureManifests for hardcoded feature ACLs per role. - Add docker-compose.dev.yml for local development with PostgreSQL setup.
27 lines
707 B
C#
27 lines
707 B
C#
namespace OTSSignsOrchestrator.Server.Data.Entities;
|
|
|
|
public enum JobStatus
|
|
{
|
|
Queued,
|
|
Running,
|
|
Completed,
|
|
Failed
|
|
}
|
|
|
|
public class Job
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid CustomerId { get; set; }
|
|
public string JobType { get; set; } = string.Empty;
|
|
public JobStatus Status { get; set; }
|
|
public string? TriggeredBy { get; set; }
|
|
public string? Parameters { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
public DateTime? StartedAt { get; set; }
|
|
public DateTime? CompletedAt { get; set; }
|
|
public string? ErrorMessage { get; set; }
|
|
|
|
public Customer Customer { get; set; } = null!;
|
|
public ICollection<JobStep> Steps { get; set; } = [];
|
|
}
|