Hey fam - I’ve got flows defined in separate python files. I want to start setting up dependencies where one flow won’t trigger until another is executed. I’m assuming that can’t be done in prefect.yaml. Do I need to import these separate flows into a single file and establish the dependencies there and deploy from that file?
w
Will Raphaelson
10/09/2023, 4:34 PM
Hey Evan, if you’re on cloud, you can use automations to create this dependency, either from the prefect.yaml file or a separate yaml/json file. https://docs.prefect.io/2.13.5/concepts/automations/#pass-triggers-to-prefect-deploy
additionally, you could look into subflows as a way to have a flow kick off after another flow is completed.