- Drop existing indexes on DeploymentJobTargets and DeploymentJobSteps - Alter Status column to nvarchar(450) in DeploymentJobTargets, DeploymentJobSteps, and DeploymentJobs - Add new columns: Finished, OutputMetadataJson, Started to DeploymentJobTargets; ErrorMessage, Finished, OutputMetadataJson, Started to DeploymentJobSteps; CorrelationId, HeartbeatAt, Priority, RowVersion, ScheduledAt, WorkerName to DeploymentJobs - Create new indexes for improved query performance - Add constraints to ensure OutputMetadataJson is valid JSON - Record migration in __EFMigrationsHistory
27 lines
1.2 KiB
C#
27 lines
1.2 KiB
C#
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
|
{
|
|
public class GetQueueJobDetailsDto : BaseDetailsDto
|
|
{
|
|
public string Type { get; set; } = string.Empty;
|
|
public string Status { get; set; } = string.Empty;
|
|
public string PayloadJson { get; set; } = string.Empty;
|
|
public int Attempts { get; set; }
|
|
public int MaxAttempts { get; set; }
|
|
public DateTime? Started { get; set; }
|
|
public DateTime? Finished { get; set; }
|
|
public string? ErrorMessage { get; set; }
|
|
public string? MetadataJson { get; set; }
|
|
public string? RuleSnapshotJson { get; set; }
|
|
public Guid CorrelationId { get; set; }
|
|
public int Priority { get; set; }
|
|
public DateTime? ScheduledAt { get; set; }
|
|
public DateTime? HeartbeatAt { get; set; }
|
|
public string? WorkerName { get; set; }
|
|
public string? LockedBy { get; set; }
|
|
public DateTime? LockedUntil { get; set; }
|
|
public ICollection<GetQueueJobTargetDto> Targets { get; set; } = new List<GetQueueJobTargetDto>();
|
|
public ICollection<GetQueueJobStepDto> Steps { get; set; } = new List<GetQueueJobStepDto>();
|
|
}
|
|
}
|
|
|