-
Notifications
You must be signed in to change notification settings - Fork 886
How can I bump autostop to leave room for long-running scripts? #15515
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
Comments
Specifically, the |
After evaluating the implications of "Allow users to customize autostop duration for workspaces", we decided we're comfortable turning this on, so this ticket is no longer a high priority for me. Thanks, though! |
As Aaron noted, the Lines 1214 to 1218 in 9fe71d9
I'm not sure the current approach makes the most sense. This endpoint doesn't provide the ability to extend the workspace's "MaxDeadline", meaning it doesn't enable a user to do anything they couldn't already do by just connecting to their workspace. Restricting users from calling this endpoint doesn't really solve anything I feel (from a point of cost-saving or otherwise). @bpmct thoughts on this? |
Totally agree. I think the user should be able to hit this endpoint since it doesn't impact the max deadline. Being able to use this endpoint to keep the workspace running for a long script would be great. Thoughts on also making/renaming a CLI command to |
My opinion has changed; we should revert that check. These actions are around "activity bump" - a distinct feature from autostop. All of the methods for simulating user activity should be executable by the user. |
We currently have documentation for using the REST API to imitate session activity to bump the workspace if a script is not working, but we have seen some reports of this not working.
Similarly, the
coder schedule override-stop
does not work if a policy is set on the template for autostop. Can we spend some cycles to have a revised opinion on how to recommend users keep the workspace running if they have, for example, a training job running?Some ideas:
coder schedule bump
CLI commandThe text was updated successfully, but these errors were encountered: