Add cancellation for collection launches

This commit is contained in:
2026-10-07 15:32:02 -04:00
parent 062ade8655
commit db92c89b05
10 changed files with 501 additions and 28 deletions
+7 -1
View File
@@ -68,9 +68,13 @@ export interface CollectionSummary {
id: string;
name: string;
created_at: string;
cancelled_at: string | null;
total: number;
done: number;
failed: number;
cancelled: number;
cleanupActive: number;
cleanupFailed: number;
active: number;
queued: number;
provisioning: number;
@@ -80,11 +84,13 @@ export interface CollectionSummary {
export interface CollectionDetail {
collection: CollectionSummary;
canCancel: boolean;
retainedServers: string[];
retainedServerDeletedAt?: Record<string, string>;
queue: { concurrency: number; active: { id: string; server: string; state: string; stage: string }[]; queued: number };
servers: { id: string; server: string; action: 'create' | 'destroy'; port: number | null; map_slug: string | null; state: string; stage: string;
started_at: string; finished_at: string | null; error: string | null; server_exists: number; server_deleted_at?: string | null; queuePosition: number | null }[];
started_at: string; finished_at: string | null; error: string | null; server_exists: number; server_deleted_at?: string | null; queuePosition: number | null;
cancellation: { cleanupId: string; state: string; stage: string; error: string | null } | null }[];
}
export interface LaunchPreview {