Skip to content

Add full_offers option to Compute.get_offers()#4060

Merged
un-def merged 2 commits into
masterfrom
pr_full_offers
Jul 24, 2026
Merged

Add full_offers option to Compute.get_offers()#4060
un-def merged 2 commits into
masterfrom
pr_full_offers

Conversation

@un-def

@un-def un-def commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

When set to True, instructs the Compute not to adjust offers by requirements. Ignored by all backends except for Kubernetes and Slurm, which return full allocatable node resources if True or a purely synthetic offer reflecting resources that would be actually requested if False (the old/current default behavior).

Exposed as full_offers request body argument in HTTP API and --full-offers flag in dstack apply/dstack offer commands.

When set to `True`, instructs the Compute not to adjust offers by
requirements. Ignored by all backends except for Kubernetes and Slurm,
which return full allocatable node resources if `True` or a purely
synthetic offer reflecting resources that would be actually requested
if `False` (the old/current default behavior).

Exposed as `full_offers` request body argument in HTTP API and
`--full-offers` flag in `dstack apply`/`dstack offer` commands.
Comment thread src/dstack/_internal/core/backends/base/compute.py Outdated
Co-authored-by: Victor Skvortsov <vds003@gmail.com>
@un-def
un-def merged commit 1a2b5d5 into master Jul 24, 2026
24 checks passed
@un-def
un-def deleted the pr_full_offers branch July 24, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants