Skip to content

Commit 86b41b2

Browse files
authored
Fix instances from pools ignoring regions (#1272)
1 parent 08a4342 commit 86b41b2

File tree

1 file changed

+3
-0
lines changed
  • src/dstack/_internal/server/services

1 file changed

+3
-0
lines changed

src/dstack/_internal/server/services/pools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ def filter_pool_instances(
375375
if profile.backends is not None and instance.backend not in profile.backends:
376376
continue
377377

378+
if profile.regions is not None and instance.region not in profile.regions:
379+
continue
380+
378381
if multinode and instance.backend not in BACKENDS_WITH_MULTINODE_SUPPORT:
379382
continue
380383

0 commit comments

Comments
 (0)