Skip to content

Commit 0d708b6

Browse files
committed
Merge branch 'master' into feature/inference_functionality
2 parents 530f590 + a1efc82 commit 0d708b6

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
@@ -32,6 +32,7 @@ class VolumeMountType(str, Enum):
3232

3333
SCRATCH = "scratch"
3434
SECRET = "secret"
35+
MEMORY = "memory"
3536

3637

3738
class ContainerRegistryType(str, Enum):
@@ -105,18 +106,20 @@ class EnvVar:
105106
type: EnvVarType
106107

107108

108-
@dataclass_json
109+
@dataclass_json(undefined=Undefined.EXCLUDE)
109110
@dataclass
110111
class VolumeMount:
111112
"""Volume mount configuration for containers.
112113
113114
Attributes:
114115
type: Type of volume mount.
115116
mount_path: Path where the volume should be mounted in the container.
117+
size_in_mb: Size of the memory volume in megabytes, only used for memory volume mounts
116118
"""
117119

118120
type: VolumeMountType
119121
mount_path: str
122+
size_in_mb: Optional[int] = None
120123

121124

122125
@dataclass_json

0 commit comments

Comments
 (0)