Skip to content

Commit

Permalink
Fix instances from pools ignoring regions (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
r4victor authored May 23, 2024
1 parent 08a4342 commit 86b41b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dstack/_internal/server/services/pools.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,9 @@ def filter_pool_instances(
if profile.backends is not None and instance.backend not in profile.backends:
continue

if profile.regions is not None and instance.region not in profile.regions:
continue

if multinode and instance.backend not in BACKENDS_WITH_MULTINODE_SUPPORT:
continue

Expand Down

0 comments on commit 86b41b2

Please sign in to comment.