Join the Kedro community

Home
Members
Marshall Krassenstein
M
Marshall Krassenstein
Offline, last seen 2 months ago
Joined October 28, 2024

Bit of a long shot but could use some help on how to do this. My team is using an infrastructure as code tool called pulumi. I bootstrap and running a kedro project in a pulumi project is easy enough by running

bootstrap_project(Path("."))
with KedroSession.create() as session:
     session.run()
But pulumi restricts logs of anything that isn't explicitly a pulumi asset. Pulumi does allow you to log arbitrary python code https://www.pulumi.com/docs/iac/concepts/logging/ by running for example pulumi.info(message) pulumi.warning(message) etc..

Is there any way I could intercept the kedro logging system so that instead of it running something like logger.info(message) to emit a message, it could run pulumi.info(message)?

2 comments
N

Hi all,

My team creates kedro starters using cookie cutter templates. Some of our files have .jinja like syntax e.g. {{ some code here }} that isn't actually jinja. Is there a way to have kedro ignore certain files when running kedro new on the template so that it doesn't try to .jinja render them?

4 comments
d
M