Skip to content

Don't request backend offers if creation_policy: reuse or instances is set#4046

Merged
un-def merged 1 commit into
masterfrom
pr_optimize_run_plan_with_creation_policy_reuse
Jul 21, 2026
Merged

Don't request backend offers if creation_policy: reuse or instances is set#4046
un-def merged 1 commit into
masterfrom
pr_optimize_run_plan_with_creation_policy_reuse

Conversation

@un-def

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

Copy link
Copy Markdown
Collaborator

Previously, they were collected unconditionally only to be immediately discarded

…s` is set

Previously, they were collected unconditionally only to be immediately
discarded
@un-def

un-def commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

Before:

time dstack offer --reuse --cpu 0.. --memory 0.. --disk 0.. --gpu 0..
dstack offer  1.06s user 0.07s system 18% cpu 6.185 total
DEBUG    dstack._internal.server.services.backends:492 Requesting instance offers from backends: ['aws', 'runpod', 'gcp']
DEBUG    dstack._internal.server.services.backends:529 Got offers from runpod in 0.091026s
DEBUG    dstack._internal.server.services.backends:529 Got offers from gcp in 1.963004s
DEBUG    dstack._internal.server.services.backends:529 Got offers from aws in 2.918598s

After:

time dstack offer --reuse --cpu 0.. --memory 0.. --disk 0.. --gpu 0..
dstack offer --reuse  1.02s user 0.07s system 97% cpu 1.117 total

@un-def
un-def merged commit 18d089c into master Jul 21, 2026
24 checks passed
@un-def
un-def deleted the pr_optimize_run_plan_with_creation_policy_reuse branch July 21, 2026 08:08
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.

1 participant