niaid / image_portal_workflows

Workflows related to project previously referred to as "Hedwig"
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

catch bad input params to prefect API #414

Open philipmac opened 8 months ago

philipmac commented 8 months ago

currently if a bad parameter is sent to workflow, API responds with 200 and "silently" fails.

Ideally we'll send back a fail.

annshress commented 8 months ago

The request does not reach the workflows. We will need to explore more on where the request can be interfered with.

annshress commented 8 months ago

One possible option is to disable parameters validation:

https://docs.prefect.io/latest/concepts/flows/#flow-settings

Afterwards, adding a custom param validation step at the start of every flow.