Skip to content

Commit 7676051

Browse files
nick-macronick-macro
nick-macro
authored and
nick-macro
committed
add ephemeral_storage to resources
1 parent 71a5e8c commit 7676051

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

metaflow/plugins/aws/batch/batch_decorator.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ class BatchDecorator(StepDecorator):
8686
Number of elastic fabric adapter network devices to attach to container
8787
ephemeral_storage : int, default None
8888
The total amount, in GiB, of ephemeral storage to set for the task, 21-200GiB.
89-
This is only relevant for Fargate compute environments
89+
This is only relevant for Fargate compute environments.
90+
If `@resources` is also present, the maximum value from all decorators is used.
9091
log_driver: str, optional, default None
9192
The log driver to use for the Amazon ECS container.
9293
log_options: List[str], optional, default None

metaflow/plugins/resources_decorator.py

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class ResourcesDecorator(StepDecorator):
3232
shared_memory : int, optional, default None
3333
The value for the size (in MiB) of the /dev/shm volume for this step.
3434
This parameter maps to the `--shm-size` option in Docker.
35+
ephemeral_storage : int, default None
36+
The total amount, in GiB, of ephemeral storage to set for the task, 21-200GiB.
37+
This is only relevant for Fargate compute environments.
3538
"""
3639

3740
name = "resources"
@@ -41,4 +44,5 @@ class ResourcesDecorator(StepDecorator):
4144
"disk": None,
4245
"memory": "4096",
4346
"shared_memory": None,
47+
"ephemeral_storage": None,
4448
}

0 commit comments

Comments
 (0)