Skip to content

Commit 1290743

Browse files
committed
Mention ComputeWith* classes in backends guide
1 parent 1dbeafb commit 1290743

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

contributing/BACKENDS.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,8 @@ Refer to examples:
117117
##### 2.4.4. Create the backend compute class
118118

119119
Under the backend directory you've created, create the `compute.py` file and define the
120-
backend compute class there (should extend `dstack._internal.core.backends.base.compute.Compute`).
121-
122-
You'll have to implement `get_offers`, `run_job` and `terminate_instance`.
123-
You may need to implement `update_provisioning_data`, see its docstring for details.
124-
125-
For VM-based backends, also implement the `create_instance` method and add the backend name to
126-
[`BACKENDS_WITH_CREATE_INSTANCE_SUPPORT`](`https://github.com/dstackai/dstack/blob/master/src/dstack/_internal/core/backends/__init__.py`).
120+
backend compute class that extends the `dstack._internal.core.backends.base.compute.Compute` class.
121+
It can also extend and implement `ComputeWith*` classes to support additional features such as fleets, volumes, gateways, placement groups, etc.
127122

128123
Refer to examples:
129124
[datacrunch](https://github.com/dstackai/dstack/blob/master/src/dstack/_internal/core/backends/datacrunch/compute.py),

0 commit comments

Comments
 (0)