Thanks to visit codestin.com
Credit goes to github.com

Skip to content

scheduling: admins want to update all workspaces at once #6052

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
bpmct opened this issue Feb 6, 2023 · 4 comments
Closed

scheduling: admins want to update all workspaces at once #6052

bpmct opened this issue Feb 6, 2023 · 4 comments
Assignees
Labels
enterprise Enterprise-license / premium functionality stale This issue is like stale bread.

Comments

@bpmct
Copy link
Member

bpmct commented Feb 6, 2023

While controls like #6047 can enforce updates after the workspace reaches its max lifetime, there may be cases where an admin will want to immediately "roll out" a change to all developer workspaces, e.g. on a weekend or after a major security patch.

Some ideas:

Solution Pros Cons
Provide a bash script in docs for updating all workspaces with a particular template No added code debt Kicks users out when they are working, could interrupt developer's flow or stop running jobs
Add a first-class feature to update all workspaces that warns the user and allows them to postpone and/or save their work Developers have time to save their work. Easier command to remember. Complex feature. No guarantee developers see the notification
Bulk workspace actions Ability to query specific workspaces (last-active:90d-ago) and run specific actions stop, delete, etc. Potentially ability to notify the user before action occurs. Complex. Could be done with custom scripting
Template version tags (e.g. latest) Always push one promoted template version tag: latest #6051
@bpmct bpmct added the enterprise Enterprise-license / premium functionality label Feb 6, 2023
@ammario
Copy link
Member

ammario commented Feb 6, 2023

Related #6051

@ammario ammario changed the title Admins want to update all workspaces at once scheduling: admins want to update all workspaces at once Feb 6, 2023
@deansheather
Copy link
Member

The second solution could be accomplished by setting the workspace build's max_deadline to be the target time for update, and then having logic elsewhere to force update on the next build.

@ammario
Copy link
Member

ammario commented Feb 28, 2023

That's clean @deansheather. I could see an admin setting that all workspaces have to update on Saturday at 11:59PM. There could be a bool on the latest workspace_build for "force_update".

@github-actions
Copy link

This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity.

@github-actions github-actions bot added the stale This issue is like stale bread. label May 29, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enterprise Enterprise-license / premium functionality stale This issue is like stale bread.
Projects
None yet
Development

No branches or pull requests

3 participants