Jay Ganbat
06/01/2023, 9:22 PMfrom __future__ import absolute_import, division, print_function
from typing import Optional
from flytekit import task, workflow, dynamic
from flytekit.types.file import FlyteFile
@task
def hello(myfile: Optional[FlyteFile]) -> Optional[FlyteFile]:
return None
@dynamic
def dyn_hello(myfile: Optional[FlyteFile]) -> Optional[FlyteFile]:
return hello(myfile=myfile)
@workflow
def child_workflow(myfile: Optional[FlyteFile]) -> Optional[FlyteFile]:
hello_output = dyn_hello(myfile=myfile)
return hello_output
above workflow when executed showing the following issue in FlytePropeller
E0601 21:21:14.327422 1 workers.go:102] error syncing 'flyte-sandbox/anwfrlcbl62scwxzsnh7': 0: [User] malformed dynamic workflow, caused by: Collected Errors: 2
Error 0: Code: MismatchingTypes, Node Id: end-node, Description: Variable [o1] (type [union_type:<variants:<blob:<> structure:<tag:"FlyteFilePath" > > variants:<simple:NONE structure:<tag:"none" > > > ]) doesn't match expected type [union_type:<variants:<blob:<> > variants:<simple:NONE > > ].
Error 1: Code: ParameterNotBound, Node Id: end-node, Description: Parameter not bound [o1].
I think there is somethign wrong during dynamic WF compilation ๐ค
I am on flytekit 1.4Yee
Kevin Su
06/01/2023, 11:58 PMJay Ganbat
06/02/2023, 3:56 PMEduardo Apolinario (eapolinario)
06/02/2023, 6:15 PMVictor Churikov
06/05/2023, 3:55 PMJay Ganbat
06/05/2023, 5:18 PMKevin Su
06/05/2023, 5:22 PMSlackbot
06/05/2023, 5:22 PMJay Ganbat
06/05/2023, 5:32 PM