Hi everyone, how do I configure the execution of a...
# ask-community
p
Hi everyone, how do I configure the execution of a flow after the successful execution of the previous one, but the 2 flows are in different agents
k
Hey @Pedro Henrique, I think you can do this if you have a “main” flow that uses multiple
StartFlowRun
task calls.
upvote 1
n
Here's the documentation on StartFlowRun for reference: https://docs.prefect.io/api/latest/tasks/prefect.html#startflowrun
p
that's exactly where I am, at least I'm in the right place, thank you, I'll debug
It worked! Thanks!
🎉 1
j
i'm working with @Pedro Henrique on this, the startflow works, has any way of the logger in the flows works with this? I tried pass the context:
Copy code
new_flow_context=prefect.context.get('config')
but not work...
👍 1
k
You mean you want the logs of the subflows to appear in the main flow?
j
Yes
k
Yeah unfortunately no there is no way to do this at the moment.
j
okay, thanks!