You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime parameters in Kedro are not being recognized when passed via --params in the CLI.
Context
I am trying to pass runtime parameters for model_name and model_identifier, with default values specified in a global file. However, Kedro does not recognize the runtime parameters and always falls back to the global defaults. If only the runtime parameter is provided, Kedro returns an error.
I think, but we should confirm with @ankatiyar (If I remember correctly she was the one who implemented runtime_params resolver) that this specific resolver does not work inside parameters.yml but only inside catalog.yml. I don't remember the rationale and hopefully someone can step in to explain, but I understand this behaviour is confusing.
I also tag @astrojuanlu as I think this is part of another discussion about unifying globals /runtime / "normal" parameters and clarifying what is allowed or not (preferably before 0.20 😉)
Hi, sorry I missed the tag earlier. So the runtime_params: resolver should work in the parameters.yml file. The only place it doesn't work is in globals.yml but the error message should say something like : UnsupportedInterpolationType: The runtime_params: resolver is not supported for globals.
I've tried to reproduce the error with the information mentioned above and the runtime parameters work for me as expected. Have you been able to resolve this issue in the mean time @fpiedrah? I would like to see the full stacktrace if it's possible otherwise?
Description
Runtime parameters in Kedro are not being recognized when passed via
--params
in the CLI.Context
I am trying to pass runtime parameters for
model_name
andmodel_identifier
, with default values specified in a global file. However, Kedro does not recognize the runtime parameters and always falls back to the global defaults. If only the runtime parameter is provided, Kedro returns an error.My
parameters.yml
file:When running:
I get the error:
This prevents overriding these values dynamically at runtime.
Steps to Reproduce
Define
parameters.yml
with runtime parameters:Run the pipeline with:
Get the following error:
Expected Result
Runtime parameters should be injected when passed via --params in the CLI.
Actual Result
Your Environment
I also made a change by commenting out parts of the
settings.py
file. While I don't believe this is related, I’m including mysettings.py
file:The text was updated successfully, but these errors were encountered: