Join the Kedro community

Updated 4 weeks ago

Validating command line parameters for kedro run

What is the right place to validate command line parameters to kedro run? Let's say I want to check if parameter A has been passed (kedro run --params=a=1) if "env" is local and parameter C exists when env is "prod". It would be great if the process just stops with an error message and not a stack trace.

d
1 comment

so you could define a before_pipeline_run hook which insects things. At that point you could do some if/else/raise logic or use something like Pydantic so you get validation superpowers

https://docs.kedro.org/en/stable/hooks/index.html

Add a reply
Sign up and join the conversation on Slack