Skip to content

Commit

Permalink
Update docs reference on spot policy default
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor committed Sep 5, 2024
1 parent e366836 commit 1ecbe71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/docs/reference/dstack.yml/service.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ spot_policy: auto

</div>

The `spot_policy` accepts `spot`, `on-demand`, and `auto`. The default for services is `auto`.
The `spot_policy` accepts `spot`, `on-demand`, and `auto`. The default for services is `on-demand`.

### Backends

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/reference/dstack.yml/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ spot_policy: auto

</div>

The `spot_policy` accepts `spot`, `on-demand`, and `auto`. The default for tasks is `auto`.
The `spot_policy` accepts `spot`, `on-demand`, and `auto`. The default for tasks is `on-demand`.

### Queueing tasks { #queueing-tasks }

Expand Down
2 changes: 1 addition & 1 deletion src/dstack/_internal/core/models/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ProfileParams(CoreModel):
spot_policy: Annotated[
Optional[SpotPolicy],
Field(
description="The policy for provisioning spot or on-demand instances: `spot`, `on-demand`, or `auto`"
description="The policy for provisioning spot or on-demand instances: `spot`, `on-demand`, or `auto`. Defaults to `on-demand`"
),
]
retry: Annotated[
Expand Down

0 comments on commit 1ecbe71

Please sign in to comment.