<#1177 [Core Feature] Support DynamicWorkflow Task...
# flyte-github
c
#1177 [Core Feature] Support DynamicWorkflow TaskResolver Issue created by EngHabu Motivation: Why do you think this is important? I would like to be able to dictate which secrets to load based on inputs. The only way I could think of doing that is something like this: @dynamic def my_task(secret_key: str) -> str: @task(secret_requests=[Secret(group="my-group", key=secret_key)]) def inner_task() -> str: ... return inner_task() Describe alternatives you've considered 1. Loading all keys for a secret. Doesn't work with some secret providers (particularly AWS Secret Manager) 2. This worked: @task(secret_requests=[Secret(group="my-group", key="")]) def inner_task() -> str: ... @dynamic def my_task(secret_key: str) -> str: inner_task.secret_requests = [Secret(group="my-group", key=secret_key)] return inner_task() flyteorg/flyte