Skip to content

Commit

Permalink
[ws-manager-bridge] Don't interpret failed tasks as aborted prebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel authored and roboquat committed Jul 29, 2021
1 parent 698a17b commit 7df1a3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/ws-manager-bridge/ee/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,13 @@ export class WorkspaceManagerBridgeEE extends WorkspaceManagerBridge {
prebuild.error = status.conditions!.timeout;
headlessUpdateType = HeadlessWorkspaceEventType.AbortedTimedOut;
} else if (!!status.conditions!.failed) {
prebuild.state = "aborted"
prebuild.state = "aborted";
prebuild.error = status.conditions!.failed;
headlessUpdateType = HeadlessWorkspaceEventType.Aborted;
} else if (!!status.conditions!.headlessTaskFailed) {
prebuild.state = "aborted"
prebuild.state = "available";
prebuild.error = status.conditions!.headlessTaskFailed;
prebuild.snapshot = status.conditions!.snapshot;
headlessUpdateType = HeadlessWorkspaceEventType.FinishedButFailed;
} else {
prebuild.state = "available";
Expand Down

0 comments on commit 7df1a3f

Please sign in to comment.