mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
Preset tables, latest workspace view, state logic improved
Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
@ -149,12 +149,12 @@ func (c Controller) reconcileTemplate(ctx context.Context, template database.Tem
|
||||
|
||||
// If the template has become deleted or deprecated since the last reconciliation, we need to ensure we
|
||||
// scale those prebuilds down to zero.
|
||||
if result.Deleted || result.Deprecated == "" {
|
||||
if result.Deleted || result.Deprecated {
|
||||
desired = 0
|
||||
}
|
||||
|
||||
c.logger.Info(innerCtx, "template prebuild state retrieved",
|
||||
slog.F("template_id", template.ID), slog.F("template_version_id", result.TemplateVersionID),
|
||||
slog.F("template_id", template.ID),
|
||||
slog.F("desired", desired), slog.F("actual", actual), slog.F("extraneous", extraneous))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user