Skip to content

Commit 51e60b7

Browse files
gcp-cherry-pick-bot[bot]ssncferreirastirby
authored
fix: exclude prebuilt workspaces from lifecycle executor (cherry-pick #18762) (#18858)
Co-authored-by: Susana Ferreira <susana@coder.com> Co-authored-by: Stephen Kirby <58410745+stirby@users.noreply.github.com> Fixes: #18740
1 parent 33885af commit 51e60b7

File tree

14 files changed

+1204
-18
lines changed

14 files changed

+1204
-18
lines changed

coderd/apidoc/docs.go

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/autobuild/lifecycle_executor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,8 @@ func isEligibleForAutostart(user database.User, ws database.Workspace, build dat
520520
return false
521521
}
522522

523+
// Get the next allowed autostart time after the build's creation time,
524+
// based on the workspace's schedule and the template's allowed days.
523525
nextTransition, err := schedule.NextAllowedAutostart(build.CreatedAt, ws.AutostartSchedule.String, templateSchedule)
524526
if err != nil {
525527
return false

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy