- Notifications
You must be signed in to change notification settings - Fork948
Commit211393a
authored
fix: exclude prebuilt workspaces from lifecycle executor (#18762)
## DescriptionThis PR updates the lifecycle executor to explicitly exclude prebuiltworkspaces from being considered for lifecycle operations such as`autostart`, `autostop`, `dormancy`, `default TTL` and `failure TTL`.Prebuilt workspaces (i.e., those owned by the prebuild system user) arehandled separately by the prebuild reconciliation loop. Including themin the lifecycle executor could lead to unintended behavior such asincorrect scheduling or state transitions.## Changes* Updated the lifecycle executor query`GetWorkspacesEligibleForTransition` to exclude workspaces with`owner_id = 'c42fdf75-3097-471c-8c33-fb52454d81c0'` (prebuilds).* Added tests to verify prebuilt workspaces are not considered in: * Autostop * Autostart * Default TTL * Dormancy * Failure TTLFixes:#18740Related to:#186581 parent0118e75 commit211393a
File tree
14 files changed
+1204
-18
lines changed- coderd
- apidoc
- autobuild
- database
- dbgen
- queries
- schedule
- codersdk
- docs
- admin/templates/extending-templates
- reference/api
- enterprise/coderd
- site/src
- api
- utils
14 files changed
+1204
-18
lines changedLines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
520 | 520 |
| |
521 | 521 |
| |
522 | 522 |
| |
| 523 | + | |
| 524 | + | |
523 | 525 |
| |
524 | 526 |
| |
525 | 527 |
| |
|
0 commit comments
Comments
(0)