Skip to content
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

feat: enforce min and max bounds on workspace TTL and Deadline #1902

Merged
merged 2 commits into from
May 30, 2022

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented May 30, 2022

This adds enforcement for both workspace TTL and deadline:

  • Workspace TTL must be at least one minute and at most 7 days
  • Delta between requested workspace deadline and now must be positive, at lest one minute, and at most 24 hours.

NOTE: These upper bounds are chosen arbitrarily; then can be changed later. The main takeaway here is that it is easier to modify an existing upper bound than it is to add a new one.

Closes #1758

@johnstcn johnstcn requested a review from a team May 30, 2022 16:32
@johnstcn johnstcn self-assigned this May 30, 2022
@johnstcn johnstcn merged commit a8ae9b3 into main May 30, 2022
@johnstcn johnstcn deleted the cj/gh-1758/workspace-ttl-bound branch May 30, 2022 19:19
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* Enforces upper bound for workspace TTL
* Enforces upper bound for workspace deadline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: autostop: set upper bound on workspace TTL
2 participants