Hi all, I am trying to run a sub-flow on a different docker image than my main flow and pass data back from my sub-flow to my main flow using
prefect 2.0b7-python3.8
. I'm trying to orchestrate the images through
DeploymentSpecs
with
DockerFlowRunners
as the flow_runners. Currently what happens is the sub flow runs on the same image as the main flow unless the sub flow is deployed independently. Would greatly appreciate any ideas or insights into current feasibility!
Hi @Anna Geller, thanks for the response! I think I understand how to do it by "persist the data manually yourself + leverage the orchestrator pattern", but I don't quite understand the "use subflows instead". I thought my current approach was trying to use subflows but maybe I misunderstood.
k
Kevin Kho
07/11/2022, 8:19 PM
I think Anna means you need to start a new flow run from a deployment like this
👍 1
a
Anna Geller
07/11/2022, 11:04 PM
subflows pattern means running your flows directly from the main/parent flow
orchestrator pattern means triggering your child flow runs via an API call which can be triggered e.g. using
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.