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

Feature: Scheduled deletion for environments #181

Open
royra opened this issue Aug 14, 2023 · 1 comment
Open

Feature: Scheduled deletion for environments #181

royra opened this issue Aug 14, 2023 · 1 comment
Labels
enhancement New feature or request need spec points: 3 High complexity

Comments

@royra
Copy link
Collaborator

royra commented Aug 14, 2023

Specified in the command line:

preevy up --schedule-deletion=12h30m
preevy up --schedule-deletion="30 days"
preevy up --schedule-deletion=2024-08-12T13:14:15Z
preevy up --schedule-deletion=off

Running preevy up on an existing environment should change/remove the current schedule, but only if explicitly specified.

Implementation per driver:

This should be an optional feature per driver, this way we can implement it gradually.

If the driver doesn't support scheduled deletion, the environment should not be provisioned and the command will end with an error.

Deletion time should be included in the output of preevy ls.

Extra credit: set a default deletion schedule in the profile during preevy init

@royra royra added enhancement New feature or request need spec points: 3 High complexity labels Aug 14, 2023
@codebutler
Copy link
Contributor

Something like this could be used to automatically restart the environment as well: https://github.com/acouvreur/sablier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need spec points: 3 High complexity
Projects
None yet
Development

No branches or pull requests

2 participants