You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a dev environment has been inactive for the configured amount of time, it will be automatically terminated.
Inactivity can be defined as a lack of SSH connections. Internal connections from dstack-server should be ignored and not count as activity. It is also acceptable to ignore short-lived connections lasting only a few seconds.
The default is to disable automatic termination (inactivity_duration: off).
Implementation plan
Track SSH connections in dstack-runner
Add the inactivity_duration configuration property
Problem
Some engineers forget to stop their dev environments, resulting in unnecessary charges.
Solution
Allow to configure the inactivity duration for dev environments.
If a dev environment has been inactive for the configured amount of time, it will be automatically terminated.
Inactivity can be defined as a lack of SSH connections. Internal connections from dstack-server should be ignored and not count as activity. It is also acceptable to ignore short-lived connections lasting only a few seconds.
The default is to disable automatic termination (
inactivity_duration: off
).Implementation plan
inactivity_duration
configuration propertyinactivity_duration
in-place update #2325Workaround
Users could implement this outside of
dstack
using the API.max_duration
can also work for some use cases.Would you like to help us implement this feature by sending a PR?
Yes
The text was updated successfully, but these errors were encountered: