Skip to content

Commit 942a512

Browse files
authored
fix(api): archiving sbx state is non-blocking (#2806)
Signed-off-by: fabjanvucina <[email protected]>
1 parent 3a84c8d commit 942a512

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/api/src/sandbox/entities/sandbox.entity.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,11 @@ export class Sandbox {
326326
if (this.pending && String(this.state) === String(this.desiredState)) {
327327
this.pending = false
328328
}
329-
if (this.state === SandboxState.ERROR || this.state === SandboxState.BUILD_FAILED) {
329+
if (
330+
this.state === SandboxState.ERROR ||
331+
this.state === SandboxState.BUILD_FAILED ||
332+
(this.state === SandboxState.ARCHIVING && this.desiredState === SandboxDesiredState.ARCHIVED)
333+
) {
330334
this.pending = false
331335
}
332336
}

0 commit comments

Comments
 (0)