swiss-ai-center / core-engine

The core engine orchestrating all the Swiss AI Center services.
https://docs.swiss-ai-center.ch/reference/core-engine/
GNU Affero General Public License v3.0
6 stars 1 forks source link

Error with Services or Pipelines having input/output containing hyphens #219

Open andrptrc opened 3 months ago

andrptrc commented 3 months ago

Figure out how to handle the error if an input or output name contains an error.

One solution could be to automatically convert hyphens to underscore and backwards when reading the value.

File "/workspaces/core-engine-backend/src/pipelines/controller.py", line 117, in create
    pipeline = pipelines_service.create(pipeline, request.app)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/workspaces/core-engine-backend/src/pipelines/service.py", line 286, in create
    self.enable_pipeline(app, pipeline)
  File "/workspaces/core-engine-backend/src/pipelines/service.py", line 463, in enable_pipeline
    Parameter(
  File "/usr/local/lib/python3.11/inspect.py", line 2708, in __init__
    raise ValueError('{!r} is not a valid parameter name'.format(name))
ValueError: 'input-name' is not a valid parameter name