Introduce PostgresDeploymentCompatibilityStore with migration 011, in-memory fallback, deployment endpoints, and Postgres fixture for integration tests. Update Scheduler repository with connection policy adoption. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
namespace StellaOps.JobEngine.WebService.Services;
|
|
|
|
public interface IDeploymentCompatibilityStore
|
|
{
|
|
Task<IReadOnlyList<DeploymentDto>> ListAsync(string tenantId, CancellationToken cancellationToken);
|
|
|
|
Task<DeploymentDto?> GetAsync(string tenantId, string deploymentId, CancellationToken cancellationToken);
|
|
|
|
Task<IReadOnlyList<DeploymentLogEntryDto>?> GetLogsAsync(
|
|
string tenantId,
|
|
string deploymentId,
|
|
string? targetId,
|
|
string? level,
|
|
int? limit,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<IReadOnlyList<DeploymentEventDto>?> GetEventsAsync(
|
|
string tenantId,
|
|
string deploymentId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<DeploymentMetricsDto?> GetMetricsAsync(
|
|
string tenantId,
|
|
string deploymentId,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<DeploymentDto> CreateAsync(
|
|
string tenantId,
|
|
CreateDeploymentRequest request,
|
|
string actor,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<DeploymentMutationResult> TransitionAsync(
|
|
string tenantId,
|
|
string deploymentId,
|
|
IReadOnlyCollection<string> allowedStatuses,
|
|
string nextStatus,
|
|
string eventType,
|
|
string message,
|
|
bool complete,
|
|
CancellationToken cancellationToken);
|
|
|
|
Task<DeploymentMutationResult> RetryAsync(
|
|
string tenantId,
|
|
string deploymentId,
|
|
string targetId,
|
|
CancellationToken cancellationToken);
|
|
}
|