hello, Flyte newbie here: I'm trying to use `Conta...
# ask-the-community
a
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!
k
you can use
@dynamic
workflows to generate these container tasks
workflows are static DSL's and are interpreted at compile time
a
that worked, thanks!
150 Views