Christoph Imler
01/25/2024, 12:59 PMfrom kedro_boot.booter import boot_session
kedro_boot_session = boot_session()
client = kedro_boot_session.run(
name="get_client_app_pipeline", inputs=None
)
data = kedro_boot_session.run(
name="get_raw_date", inputs={"client": client}, parameters={"database": "db_raw", "table": "datatable"}
)
print(data.head())
If i package my project, install it in another environment and try to run this code i get an error below:
RuntimeError: Could not find the project configuration file 'pyproject.toml' in /Users/christoph.imler/Documents/Work/EquinorCognite/test_deployment. If you have created your project with Kedro version <0.17.0, make sure to update your project template. See
<https://github.com/kedro-org/kedro/blob/main/RELEASE.md#migration-guide-from-kedro-016-to-kedro-0170> for how to migrate your Kedro project.
Is there a way to run a pipeline like kedro-boot from a packaged project alone? The pipeline dont need any data other than inputs provided as argumentsTakieddine Kadiri
01/25/2024, 1:19 PMChristoph Imler
01/25/2024, 2:08 PMNok Lam Chan
01/25/2024, 2:13 PMclient
injection, https://kedro-org.slack.com/archives/C03RKP2LW64/p1705928537669549?thread_ts=1705925153.315459&cid=C03RKP2LW64 would be the more kedro way to solve it.Christoph Imler
01/25/2024, 3:05 PMAbstractDataset
. I still dont see how i can inject the client in runtime using this.Nok Lam Chan
01/25/2024, 3:12 PM# base/catalog.yml
my_client:
type: LocalClientDataset
# prod/catalog.yml
my_client:
type: ProdClientDataset
To run it with your local setup , you simply do kedro run
, when running the production one, you use kedro run --env=prod
insteadNok Lam Chan
01/25/2024, 3:13 PMNok Lam Chan
01/25/2024, 3:14 PMTakieddine Kadiri
01/25/2024, 8:02 PMCONFIG_LOADER_ARGS = {
"base_env": Path(__file__).parent / "conf"
}
• Add your src/your_package/conf to package_data through pyproject.toml or setup.py
your wheel will contains now the base configs, and you can always override them with your environment/runtime configsChristoph Imler
01/25/2024, 9:47 PMChristoph Imler
02/01/2024, 3:03 PMTakieddine Kadiri
02/01/2024, 5:11 PM