https://prefect.io logo
m

Muhammad Daniyal

05/13/2022, 5:29 PM
can we run workflow inside workflow, like
Copy code
def workflow1():
   @task
   def abc(): somelogichere

   with Flow('one') as f:
      abc()
   
   f.run()

@task
def xyz(): workflow1()

with Flow('main flow') as f:
   xyz()

f.run()
j

Jason

05/13/2022, 6:09 PM
k

Kevin Kho

05/13/2022, 6:16 PM
Yeah you need to use Prefect Cloud to run a Flow in Flows. The subflow is started by Prefect Cloud
6 Views