-
Notifications
You must be signed in to change notification settings - Fork 943
docs: add documentation for prebuild scheduling feature #18462
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
evgeniy-scherbina
merged 7 commits into
main
from
yevhenii/prebuilds-autoscaling-mechanism
Jun 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
38e5bc5
refactor: change calculate-actions function signature
evgeniy-scherbina d26f663
docs: add documentation for prebuild scheduling feature
evgeniy-scherbina fb73eaf
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
evgeniy-scherbina 18443f6
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
evgeniy-scherbina 8225b60
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
evgeniy-scherbina 2f0ad42
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
evgeniy-scherbina 2c296ea
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
evgeniy-scherbina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update docs/admin/templates/extending-templates/prebuilt-workspaces.md
Co-authored-by: Danny Kopping <danny@coder.com>
- Loading branch information
commit 8225b60bd56097d2d79cf8e38a8f31b15b5af685
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -159,7 +159,7 @@ data "coder_workspace_preset" "goland" { | |||||
|
||||||
**How scheduling works:** | ||||||
|
||||||
1. Coder evaluates all active schedules at regular intervals. | ||||||
1. The reconciliation loop evaluates all active schedules every reconciliation interval (`CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL`). | ||||||
2. The schedule that matches the current time becomes active. Overlapping schedules are disallowed by validation rules. | ||||||
3. If no schedules match the current time, the base `instances` count is used. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. small nit:
Suggested change
|
||||||
4. The reconciliation loop automatically creates or destroys prebuilt workspaces to match the target count. | ||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small nit: