Skip to content

Commit 9d64349

Browse files
committed
Update template
1 parent 9707064 commit 9d64349

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/dstack/_internal/core/backends/template/compute.py.jinja

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from typing import List, Optional
22

33
from dstack._internal.core.backends.base.backend import Compute
44
from dstack._internal.core.backends.base.compute import (
5+
ComputeWithAllOffersCached,
56
ComputeWithCreateInstanceSupport,
67
ComputeWithGatewaySupport,
78
ComputeWithMultinodeSupport,
@@ -28,6 +29,7 @@ logger = get_logger(__name__)
2829

2930
class {{ 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

Comments
 (0)