Thread
#prefect-community
    j

    Julio Azeredo

    2 years ago
    There is a way to append one Flow to another? My problem is the following: I have a flow for computing data and a flow for computing data and plotting it. I'm wondering if there is a way to do this without creating two flows with repeated code. Thank you!
    Chris White

    Chris White

    2 years ago
    Hi @Julio Azeredo -
    flow.update
    allows you to merge two flows into one: https://docs.prefect.io/api/unreleased/core/flow.html#prefect-core-flow-flow-update
    j

    Julio Azeredo

    2 years ago
    Thank you!
    t

    Tobias Schmidt

    2 years ago
    Does this ensure that the plotting flow in the above example doesn’t get run before the computation flow has concluded?
    Chris White

    Chris White

    2 years ago
    No, you’ll need to explicitly set one or more task dependencies to enforce the order