hello, Flyte newbie here: I'm trying to use `Conta...
# flyte-support
m
hello, Flyte newbie here: I'm trying to use
ContainerTask
where name of the image is a parameter into my workflow. Naive approach does not work as parameter is a promise that is unresolved at task declaration time:
Copy code
@workflow
def run_test(version: str) -> str:
    run_container_task = ContainerTask(
        ...
        image="repository/test:{version???}",
        command=[
            "uname",
        ],
    )

    return run_container_task(version='v1')
Thanks!
f
you can use
@dynamic
workflows to generate these container tasks
👍 1
workflows are static DSL's and are interpreted at compile time
m
that worked, thanks!
153 Views