Hey there, if I am using subflows with the entrypoint flow running on k8s. Can subflows be run as separate k8s jobs?
✅ 1
d
Deceivious
03/22/2023, 3:58 PM
Each of the subflows need a seperate deployment if u want the sub flow to run on a separate infra block
a
Alex Wilcoxson
03/22/2023, 4:13 PM
gotcha, and if they have separate deployments, simply calling the flow function from the entrypoint flow would be enough to start subflow on own infra?
d
Deceivious
03/22/2023, 4:26 PM
Theres a run_deployment method
Deceivious
03/22/2023, 4:27 PM
U can call the deployment u deployed for subflow to run it by the deployment name
Deceivious
03/22/2023, 4:29 PM
So instead of calling
subflow()
You will have:
Copy code
deploy_subflow(flow=subflow,deployment_name=dep_name)# u have to write this method
run_deployment(dep_name) # this method is in prefect
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.