Skip to content

Commit 5461b20

Browse files
authored
fix(VastAICompute): filter region before offer (#3193)
* feat(VastAICompute): add support for region * fix(VastAICompute): use iso country code in offer * Revert "fix(VastAICompute): use iso country code in offer" This reverts commit 0ba98a2.
1 parent d711edf commit 5461b20

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/dstack/_internal/core/backends/vastai

src/dstack/_internal/core/backends/vastai/compute.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def get_offers_by_requirements(
5858
) -> List[InstanceOfferWithAvailability]:
5959
offers = get_catalog_offers(
6060
backend=BackendType.VASTAI,
61+
locations=self.config.regions or None,
6162
requirements=requirements,
6263
# TODO(egor-s): spots currently not supported
6364
extra_filter=lambda offer: not offer.instance.resources.spot,

0 commit comments

Comments
 (0)