Skip to content

FR: allow to disable auto-stop on running workspaces #9775

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

Closed
Tracked by #11503
janLo opened this issue Sep 19, 2023 · 6 comments · Fixed by #16085
Closed
Tracked by #11503

FR: allow to disable auto-stop on running workspaces #9775

janLo opened this issue Sep 19, 2023 · 6 comments · Fixed by #16085
Assignees
Labels
api Area: HTTP API

Comments

@janLo
Copy link
Contributor

janLo commented Sep 19, 2023

I have some templates with a 24h auto-stop-timeout, but where the user can disable the autostop feature altogether if needed. This works well as most of the users are fine with the auto-stop, and we can save resources.

But if someone needs to preserve a state e.g. over the weekend, it is not possible to disable the auto-stop for a running workspace. If the user tries to toggle the auto-stop toggle, a dialog pops up and asks if the workspace should restart now or if the setting should be applied later at the next restart. This is not what the user wanted in this case.

I don't understand why the restart is required, and I think, it would be a great UX improvement if the user could disable the autostop without having to restart (stop) the running workspace.

@cdr-bot cdr-bot bot added the feature label Sep 19, 2023
@ElliotG
Copy link
Contributor

ElliotG commented Oct 2, 2023

Big +1 to getting this FR done. I need to update the auto stop time of 200 workspaces, and restarting them all sounds terrible.

@bpmct
Copy link
Member

bpmct commented Nov 1, 2023

This makes a ton of sense, I'll see if we can prioritize it next month

@stirby
Copy link
Collaborator

stirby commented Apr 15, 2024

If your users are able to customize the Autostop timer on their workspaces, they could use the schedule override-stop command.

You should be able to use coder schedule override-stop my-workspace 72h to keep the workspaces alive over the weekend. However, this command doesn't support truly indefinite Autostop suspension (I believe the max is 132 hours).

Would this remedy your issue?

We still may add some functionality to change Autostop without restarting the workspace down the road.

@stirby stirby added the api Area: HTTP API label Apr 15, 2024
@mambon2
Copy link

mambon2 commented Apr 16, 2024

+1

@DanielleMaywood
Copy link
Contributor

As it's been a while since this feature was requested I'm going to quickly mention what can be done currently to achieve similar to this goal whilst I work on the design for this 👍.

You can use coder schedule extend <workspace-name> <duration from now> (previously override-stop) to extend the deadline of a running container. There is no upper limit to the <duration from now> argument, meaning you could pass something like 8736h to give the workspace an entire year before it shuts down. Now this isn't the same as disabling autostop but it should be sufficient for your use case for now.

@mambon2
Copy link

mambon2 commented Jan 7, 2025

Yes this issue has been addressed. However, making changes to workspace schedule still requires a restart. Not sure how easy it would be to make those changes without a restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants