ArrichM / dynaflow

Apache License 2.0
4 stars 2 forks source link

model-registry is not responding #1

Open gvelimir opened 2 years ago

gvelimir commented 2 years ago

Hi, I've just set up an MLFlow server with Dynaflow, however the model registry is not responding on start even if I manually add a model to the registry table in DynamoDB.

The error I get is the following: File "/home/velimir/anaconda3/envs/intertec-mlflow-setups/lib/python3.10/site-packages/dynaflow/model_registry.py", line 154, in _resolve_filter_condition raise ValueError( ValueError: Only filter string satisfying the regex pattern <name ilike '%.*%'> are allowed. Received filter string:

I fixed it temporarily by expanding the condition in this snippet: if filter_string and not re.match("name ilike '%.*%'", filter_string): raise ValueError( "Only filter string satisfying the regex " "pattern <name ilike '%.*%'> are allowed. " f"Received filter string: {filter_string}" )

However I am not 100% sure that this is the most appropriate solution even though it works.