@@ -2,6 +2,7 @@ from typing import List, Optional
22
33from dstack._internal.core.backends.base.backend import Compute
44from dstack._internal.core.backends.base.compute import (
5+ ComputeWithAllOffersCached,
56 ComputeWithCreateInstanceSupport,
67 ComputeWithGatewaySupport,
78 ComputeWithMultinodeSupport,
@@ -28,6 +29,7 @@ logger = get_logger(__name__)
2829
2930class {{ backend_name }}Compute(
3031 # TODO: Choose ComputeWith* classes to extend and implement
32+ # ComputeWithAllOffersCached,
3133 # ComputeWithCreateInstanceSupport,
3234 # ComputeWithMultinodeSupport,
3335 # ComputeWithReservationSupport,
@@ -42,7 +44,7 @@ class {{ backend_name }}Compute(
4244 self.config = config
4345
4446 def get_offers(
45- self, requirements: Optional[ Requirements] = None
47+ self, requirements: Requirements
4648 ) -> List[InstanceOfferWithAvailability]:
4749 # If the provider is added to gpuhunt, you'd typically get offers
4850 # using `get_catalog_offers()` and extend them with availability info.
0 commit comments