Skip to content

Commit bf8f8d7

Browse files
committed
Update idle_duration reference
1 parent b5e3610 commit bf8f8d7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/dstack/_internal/core/models/fleets.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,12 @@ class InstanceGroupParams(CoreModel):
309309
idle_duration: Annotated[
310310
Optional[int],
311311
Field(
312-
description="Time to wait before terminating idle instances. Defaults to `5m` for runs and `3d` for fleets. Use `off` for unlimited duration"
312+
description=(
313+
"Time to wait before terminating idle instances."
314+
" Instances are not terminated if the fleet is already at `nodes.min`."
315+
" Defaults to `5m` for runs and `3d` for fleets."
316+
" Use `off` for unlimited duration"
317+
)
313318
),
314319
] = None
315320

src/dstack/_internal/core/models/profiles.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ class ProfileParams(CoreModel):
341341
Field(
342342
description=(
343343
"Time to wait before terminating idle instances."
344-
" Defaults to `5m` for runs and `3d` for fleets. Use `off` for unlimited duration"
344+
" Instances are not terminated if the fleet is already at `nodes.min`."
345+
" Defaults to `5m` for runs and `3d` for fleets."
346+
" Use `off` for unlimited duration"
345347
)
346348
),
347349
] = None

0 commit comments

Comments
 (0)