-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: do not enforce managed agent limit for non-task workspaces #21689
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
Conversation
Creating a workspace normally (not through task) should not trigger license task usage
5730438 to
abf819b
Compare
Documentation CheckNo Changes NeededThis is an internal bug fix that corrects managed agent limit enforcement for task workspaces. The change affects internal workspace builder logic only and has no user-facing documentation impact. Task workspace behavior and managed agent limits are already documented correctly. Automated review via Coder Tasks |
|
|
||
| var _ usage.Inserter = (*UsageInserter)(nil) | ||
|
|
||
| type UsageInserter struct { |
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.
Suggestion: throw in a sync.RWMutex, or make it a chan?
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.
Through in the mutex, it was easier.
Documentation CheckPrevious FeedbackPrevious doc-check comment was accurate - no documentation changes are needed for this PR. No Changes NeededThis PR is an internal bug fix that corrects managed agent limit enforcement logic. The change ensures that:
The fix affects only internal workspace builder logic ( The PR includes comprehensive tests in Automated review via Coder Tasks |
Co-authored-by: Cian Johnston <cian@coder.com>
Relates to coder/internal#1282
Only task workspaces have the checks in wsbuilder for violating the managed agent caps in the license.
Stopped tasks that are resumed with a regular workspace start still count as usage.