Keep held provisioning recovery current (Refs #86)
This commit is contained in:
@@ -15,6 +15,12 @@ export function provisioningRequester(operation: Pick<ProvisioningDeployment, 'r
|
||||
}
|
||||
|
||||
export const activeProvisioningStates = ['queued', 'waiting', 'running', 'awaiting-health'];
|
||||
|
||||
/** A finished restart can still release its recovery slot or hand it to a rebuild. */
|
||||
export function provisioningNeedsRefresh(detail: ProvisioningDetail): boolean {
|
||||
return activeProvisioningStates.includes(detail.deployment.state) || detail.progress?.recovery?.state === 'held';
|
||||
}
|
||||
|
||||
export type ProgressState = 'done' | 'current' | 'waiting' | 'failed' | 'pending' | 'cancelled' | 'unknown';
|
||||
export interface ProgressStep {
|
||||
key: ProvisioningPhase; label: string; state: ProgressState; at: string | null;
|
||||
|
||||
Reference in New Issue
Block a user