Hi, I've tried to create a `dynamic` with multiple...
# flyte-support
b
Hi, I've tried to create a
dynamic
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.,
Copy code
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(...)