Skip to content

Commit acd370d

Browse files
committed
Merge branch 'master' into refactor/use-dataclasses
2 parents e28bc59 + a1efc82 commit acd370d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
Changelog
22
=========
33

4+
v1.9.0 (2025-04-04)
5+
-------------------
6+
47
* Added environment variables to container deployment example
58
* Updated examples image from 'fastai' to 'ubuntu-24.04-cuda-12.8-open-docker'
69
* Consistent naming and load of credentials from env variables in examples
10+
* Added size_in_mb parameter to VolumeMount class
11+
* Added memory volume mount type
712

813
v1.8.4 (2025-03-25)
914
-------------------

datacrunch/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '1.8.4'
1+
VERSION = '1.9.0'

datacrunch/containers/containers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class EnvVarType(str, Enum):
1919
class VolumeMountType(str, Enum):
2020
SCRATCH = "scratch"
2121
SECRET = "secret"
22+
MEMORY = "memory"
2223

2324

2425
class ContainerRegistryType(str, Enum):
@@ -82,16 +83,18 @@ class EnvVar:
8283
type: EnvVarType
8384

8485

85-
@dataclass_json
86+
@dataclass_json(undefined=Undefined.EXCLUDE)
8687
@dataclass
8788
class VolumeMount:
8889
"""Volume mount configuration for containers.
8990
9091
:param type: Type of volume mount
9192
:param mount_path: Path where the volume should be mounted in the container
93+
:param size_in_mb: Size of the volume in megabytes, only used for memory volume mounts
9294
"""
9395
type: VolumeMountType
9496
mount_path: str
97+
size_in_mb: Optional[int] = None
9598

9699

97100
@dataclass_json

0 commit comments

Comments
 (0)