Hello, I have a problem in relation to the executi...
# questions
r
Hello, I have a problem in relation to the execution time of my kedro project, in fact, when I execute it with
kedro run --async
, it takes less time (significant) compared to when I use the
KedroSession.create().run()
with FastAPI (knowing that in my post function I made the
async def
) my question is how can I use the
async
argument with
kedrSession
that it is at the level of
hooks
or otherwise, thank you in advance.
d
Isn't
async
something you can pass to
run
? I'll look it up, maybe it's on Runner.
👍 1
r
yeahd I want to found something can help me to reduce time of running
d
So re the
kedro run --async
taking less than
KedroSession.create().run()
, you can pass a runner object to
run()
, and that can have the
is_async=True
set. See https://github.com/kedro-org/kedro/blob/0.18.11/kedro/framework/cli/project.py#L461.
async def
in Python has no direct relation to
is_async
for runners.
r
Thank you so much