MCPcopy Create free account
hub / github.com/coder/coder / isActive

Method isActive

coderd/prebuilds/preset_snapshot.go:337–339  ·  view source on GitHub ↗

isActive returns true if the preset's template version is the active version, and it is neither deleted nor deprecated. This determines whether we should maintain prebuilds for this preset or delete them.

()

Source from the content-addressed store, hash-verified

335// isActive returns true if the preset's template version is the active version, and it is neither deleted nor deprecated.
336// This determines whether we should maintain prebuilds for this preset or delete them.
337func (p PresetSnapshot) isActive() bool {
338 return p.Preset.UsingActiveVersion && !p.Preset.Deleted && !p.Preset.Deprecated
339}
340
341// handleActiveTemplateVersion determines the reconciliation actions for a preset with an active template version.
342// It ensures the system moves towards the desired number of healthy prebuilds.

Callers 3

CanSkipReconciliationMethod · 0.95
CalculateStateMethod · 0.95
CalculateActionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected