Julian Nowak
04/05/2024, 11:55 AMfrom kedro_boot.app.fastapi.session import KedroFastApi
Is thera a way to overcome it?
I know that KedroBootFastApi
depends on KedroBootSession
, but I guess it's not as simple as defining session=KedroFastApi(KedroBootSession(pipeline="inference"))
@Takieddine KadiriJulian Nowak
04/05/2024, 11:57 AMkedro run
, and just specify subset of pipelines in the fastapi itselfTakieddine Kadiri
04/05/2024, 2:09 PMKedroBootSession
(the kedro project itself run in the context of one selected pipeline).
In order to specify different subset of your pipeline in the fastapi, you can use pipeline namespace, they are mapped with fastapi operation_id
so each endpoint could use a different pipeline.Julian Nowak
04/09/2024, 6:37 AMJan
04/10/2024, 12:31 PMkedro boot run -p my_custom_pipeline
where my_custom_pipeline is a modification of a namespaced pipeline of all my pipelines. How would I call this within the code, i.e. with kedro_boot_session.run()
?Takieddine Kadiri
04/10/2024, 4:30 PM__default__
or whatever pipeline containing your namespaced pipelines :
{‘__default__’: pipeline_namespace1 + pipeline_namespace2 + ..}
You can then select your desired pipeline namespace with kedro_boot_session.run(namespace=‘pipeline_namespace1’)
You can’t select a registred pipeline through kedro boot session run, as the session is constructed using the currently selected pipeline (through cli as you mentioned). But you can filter which subset of pipeline you need to use in your app using pipeline namespaces.Jan
04/11/2024, 7:24 AMTakieddine Kadiri
04/11/2024, 11:05 AMJan
04/11/2024, 11:08 AM