Anton Nikishin
02/27/2024, 7:46 AMJuan Luis
02/27/2024, 9:28 AMkedro run are versioned, either by adding versioned: true in your catalog or by using some external versioning solution (delta tables, MLFlow registries etc)
does this make sense?Nok Lam Chan
02/27/2024, 2:09 PMs3 bucket, or a folderNok Lam Chan
02/27/2024, 2:10 PM<s3://common_bucket/${user_name}/some_data/some_parquet.pq>Anton Nikishin
02/27/2024, 3:07 PMMatthias Roels
02/27/2024, 4:12 PMNok Lam Chan
02/27/2024, 4:32 PMMatthias Roels
02/28/2024, 7:14 PMKEDRO_ENV conf folderMatthias Roels
02/28/2024, 7:16 PMAnton Nikishin
02/29/2024, 3:08 PM{$user_name} to each file path, and then pass user_name as an argument during each run for Kedro? How do I pass this argument?Nok Lam Chan
02/29/2024, 3:43 PMglobal variable or environment variable. Optionally you can also just use the machine name if that's enoughAnton Nikishin
03/13/2024, 10:57 AMglobal variable to session.run?
Below is the code that I'm using to pass params. How to modify it to pass globals also?
def run_kedro_pipeline(scenario_config: dict, project_path: str):
"""
Run the Kedro pipeline with the given scenario configuration.
Args:
scenario_config (dict): The scenario configuration
project_path (str): path to Kedro project
"""
# Connect to the Kedro project
bootstrap_project(project_path)
with KedroSession.create(
project_path=project_path, extra_params=scenario_config
) as session:
# Run the Kedro pipeline
session.run(pipeline_name="reporting_pipeline")
If it's impossible to do it with this way of running a pipeline, what would be a better way?Nok Lam Chan
03/13/2024, 11:04 AMruntime_params which match the semanticNok Lam Chan
03/13/2024, 11:08 AMruntime_params and globals and the explanation why we don't allow overriding globals with runtime? https://docs.kedro.org/en/latest/configuration/advanced_configuration.htmlNok Lam Chan
03/13/2024, 11:09 AMAnton Nikishin
03/13/2024, 11:13 AMruntime_params? I understand how to do that with CLI but don't see how to do it with KesroSession create/run.Ankita Katiyar
03/13/2024, 11:15 AMglobals are always read from globals.yml or whatever config patterns you define in CONFIG_LOADER_ARGS . The extra_params are essentially the runtime_params hereAnkita Katiyar
03/13/2024, 11:18 AMglobals and runtime_params should interact with each other on the issue here - https://github.com/kedro-org/kedro/issues/2531 but I don’t think we put it in the documentation @Nok Lam ChanAnton Nikishin
03/13/2024, 11:20 AMNok Lam Chan
03/13/2024, 11:42 AMTheYup, this is the source of confusion I guess. We want to rename it long ago but this would result in breaking change, sorry that we cannot make this more obivousare essentially theextra_paramshereruntime_params
Nok Lam Chan
03/13/2024, 11:42 AMYolan Honoré-Rougé
03/13/2024, 2:55 PM