cuddly-jelly-27016
02/27/2025, 2:14 AM@dynamic
def map_task_of_container_task(...) -> None:
inner_task = ContainerTask(
name="inner-task-bring-your-own-container",
input_data_dir="/var/inputs",
output_data_dir="/var/outputs",
inputs=kwtypes(...),
outputs=kwtypes(...),
image="docker.io/ubuntu:latest",
command=["sh", "-c", ...],
)
map_task(inner_task)(map_input=[...])
### Describe alternatives you've considered
Alternatively I can just loop over the ContainerTask in a dynamic, but it doesn't have the benefits of a map_task.
### Propose: Link/Inline OR Additional context
There were two pull requests attempting to add this feature but were never merged: this and this.
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flyte