10000 fix: fix for prebuilds claiming and deletion by evgeniy-scherbina · Pull Request #17624 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: fix for prebuilds claiming and deletion #17624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 1, 2025
Next Next commit
fix: fix for prebuilds claiming and deletion
  • Loading branch information
evgeniy-scherbina committed Apr 30, 2025
commit 57047656ec48bce34a59d5edee84dc5bb66ea80b
5 changes: 5 additions & 0 deletions coderd/wsbuilder/wsbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,11 @@ func (b *Builder) findNewBuildParameterValue(name string) *codersdk.WorkspaceBui
}

func (b *Builder) getLastBuildParameters() ([]database.WorkspaceBuildParameter, error) {
// TODO: exclude preset params from this list instead of returning nothing?
if b.prebuildClaimedBy != uuid.Nil || b.prebuild {
return nil, nil
}

if b.lastBuildParameters != nil {
return *b.lastBuildParameters, nil
}
Expand Down
Loading
0