From cdfe0da244349d158a263d06dc77d0fb6c8a0fec Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Fri, 14 Nov 2025 13:27:40 +0500 Subject: [PATCH 1/2] Expand max_duration reference --- src/dstack/_internal/core/models/profiles.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dstack/_internal/core/models/profiles.py b/src/dstack/_internal/core/models/profiles.py index a29b8d84b6..7fae65e762 100644 --- a/src/dstack/_internal/core/models/profiles.py +++ b/src/dstack/_internal/core/models/profiles.py @@ -311,7 +311,8 @@ class ProfileParams(CoreModel): Optional[Union[Literal["off"], int]], Field( description=( - "The maximum duration of a run (e.g., `2h`, `1d`, etc)." + "The maximum duration of a run (e.g., `2h`, `1d`, etc)" + " in a running state, excluding provisioning and pulling." " After it elapses, the run is automatically stopped." " Use `off` for unlimited duration. Defaults to `off`" ) From b669dae0e5f06810aa53f224b0ce664cb5fd51a7 Mon Sep 17 00:00:00 2001 From: Victor Skvortsov Date: Fri, 14 Nov 2025 13:37:52 +0500 Subject: [PATCH 2/2] Fix typo --- docs/docs/concepts/dev-environments.md | 2 +- docs/docs/concepts/services.md | 2 +- docs/docs/concepts/tasks.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/concepts/dev-environments.md b/docs/docs/concepts/dev-environments.md index cfaeb689cb..bee28cfbe3 100644 --- a/docs/docs/concepts/dev-environments.md +++ b/docs/docs/concepts/dev-environments.md @@ -460,7 +460,7 @@ retry: !!! info "Retry duration" The duration period is calculated as a run age for `no-capacity` event - and as a time passed since the last `interruption` and `error` for `interruption` and `error` events.. + and as a time passed since the last `interruption` and `error` for `interruption` and `error` events. ### Inactivity duration diff --git a/docs/docs/concepts/services.md b/docs/docs/concepts/services.md index 223bd311bc..6404c2bd1a 100644 --- a/docs/docs/concepts/services.md +++ b/docs/docs/concepts/services.md @@ -822,7 +822,7 @@ If one replica of a multi-replica service fails with retry enabled, `dstack` will resubmit only the failed replica while keeping active replicas running. !!! info "Retry duration" - The duration period is calculated as a run age for `no-capacity` event and as a time passed since the last `interruption` and `error` for `interruption` and `error` events.. + The duration period is calculated as a run age for `no-capacity` event and as a time passed since the last `interruption` and `error` for `interruption` and `error` events. ### Spot policy diff --git a/docs/docs/concepts/tasks.md b/docs/docs/concepts/tasks.md index 59a6f5fce7..a196ec6fea 100644 --- a/docs/docs/concepts/tasks.md +++ b/docs/docs/concepts/tasks.md @@ -719,7 +719,7 @@ If one job of a multi-node task fails with retry enabled, `dstack` will stop all the jobs and resubmit the run. !!! info "Retry duration" - The duration period is calculated as a run age for `no-capacity` event and as a time passed since the last `interruption` and `error` for `interruption` and `error` events.. + The duration period is calculated as a run age for `no-capacity` event and as a time passed since the last `interruption` and `error` for `interruption` and `error` events. ### Priority