Skip to content

[Feature]: Shutdown time rather than timeout, preferably on the command line #2906

@jsadusk

Description

@jsadusk

Problem

For dev environments specifically, I don't usually want an environment to last a specific duration. I want the environment to shutdown at a specific time. In other words, regardless of when I start working, I want it to shut down at 6:00. Currently there's no way to do this other than editing my workstation yml each time, and figuring out in my head how many hours I want to run right now.

Solution

It would be a usability enhancement for me to just type dstack apply --shutdown-time=6:00pm .... Alternatively, a minimal enhancement would be to allow the apply command line to override settings in the yaml. So in that case dstack apply --config-override="max_duration: 6h" or something to that effect.

Workaround

I have written scripts to take a templated dev environment yaml and insert the values I want, but this is a very roundabout solution.

Would you like to help us implement this feature by sending a PR?

Maybe

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions