Evan Sadler
02/16/2023, 3:49 PMfrom flytekit import workflow, dynamic, task
@dataclass_json
@dataclass
class Params:
color: str
@task
def print_color(c: str):
print(c)
@dynamic
def wf(params: Params) -> Params:
print_color(c=params.color)
return inner
Ketan (kumare3)
Dan Rammer (hamersaw)
02/16/2023, 4:04 PMLiteral
as a field of the dataclass rather than just the dataclass itself, then propeller internally can parse and retrieve the field when passing input values. I'm convinced it would be possible.Evan Sadler
02/16/2023, 4:09 PM