Hi!
When calling fetch_workflow, Is there a way to identify
1. This workflow exist but no version
2. This workflow isn't existed
g
glamorous-carpet-83516
06/24/2024, 4:27 PM
1. if version is not provided, flytekit will fetch latest version of workflow
2. IIRC, if workflow doesn’t exist, flytekit will raise an exception (entityNonFound)
h
helpful-van-10149
06/24/2024, 4:31 PM
Thanks Kevin.
For 1, "no version" means zero version for that workflow. But I was thinking is this even possible? It seems that when you create a workflow, you will have to create a version of the workflow at the same time.
g
glamorous-carpet-83516
06/24/2024, 4:32 PM
it’s not possible. every entity in flyte has a version