Skip to content

Commit

Permalink
fix: actually set the removed state (#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Oct 1, 2024
1 parent 44bb5e5 commit a26bcf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/buildengine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,8 @@ func (e *Engine) watchForModuleChanges(ctx context.Context, period time.Duration
}
case WatchEventModuleRemoved:
err := terminateModuleDeployment(ctx, e.client, event.Config.Module)
terminal.UpdateModuleState(ctx, event.Config.Module, terminal.BuildStateTerminated)

if err != nil {
didError = true
e.reportBuildFailed(err)
Expand Down

0 comments on commit a26bcf9

Please sign in to comment.