important-hamburger-34837
08/27/2024, 9:36 PM@task
def generate_directory() -> FlyteDirectory:
# do something
return FlyteDirectory(path=".....")
@task
def consume_directories(dirs: List[FlyteDirectory]):
# do something with a list of directories
return
@workflow
def wf():
dirs = map_task(generate_directory)()
consume_directories(dirs=dirs)
I keep getting this error:
Failed to convert inputs of task
'wf.consume_directories':
'NoneType' object has no attribute 'uri'
is it not allowed to use the output of a map task if it was list of FlyteDirectory?
flytekit version: 1.13.4thankful-minister-83577
thankful-minister-83577
important-hamburger-34837
08/27/2024, 9:56 PMimportant-hamburger-34837
08/27/2024, 9:56 PMthankful-minister-83577
thankful-minister-83577
important-hamburger-34837
08/27/2024, 10:01 PMthankful-minister-83577
important-hamburger-34837
08/27/2024, 10:12 PMthankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
important-hamburger-34837
08/28/2024, 10:34 AMmin_success_ratio
: you need to expect a failed pod in the next task, so the consume_dir
should expect List[Optional[FlyteDirectory]]
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
thankful-minister-83577
important-hamburger-34837
08/28/2024, 10:19 PMimportant-hamburger-34837
08/28/2024, 10:19 PMthankful-minister-83577
important-hamburger-34837
08/29/2024, 9:44 AM