kubeflow / metadata

Repository for assets related to Metadata.
Apache License 2.0
121 stars 69 forks source link

Handle exception when Type is not found #254

Closed souvik-deepsource closed 3 years ago

souvik-deepsource commented 3 years ago

When creating an object from the Execution class, the _type_id variable stores the id of the execution type by querying the Type table in the database. During first executions, it is natural that the type won't be present and thus the database will throw an error. This error is blocking when running the demo notebook. The error thrown is as shown below.

ERROR:absl:mlmd client NotFoundError: No type found for query: kubeflow.org/alpha/execution

https://github.com/kubeflow/metadata/blob/86ca46dbe82f91c0a049645e9573b170600be2d7/sdk/python/kubeflow/metadata/metadata.py#L284

harshit-deepsource commented 3 years ago

Use Kubeflow v1.1.0 and it should work just fine.