best-secretary-86936
07/24/2025, 9:15 PMdynamic
with multiple tasks in it, including ContainerTask. I find that tasks within a dynamic can only have the docker image. Wondering if that's intended behavior of a dynamic
, E.g.,
first_container_task = ContainerTask(
...,
image=IMAGE_1
)
second_container_task = ContainerTask(
...,
image=IMAGE_2,
)
@task
def regular_task(...):
return ...
@dynamic
def dynamic_task(...):
# The second_container_task will use the same image
# from the first_container_task even though
# they were defined differently.
first_container_task(...)
second_container_task(...)
@dynamic
def another_dynamic_task(...):
# Even the regular_task will attempt to use the image from the first_container_task
first_container_task(...)
regular_task(...)