https://prefect.io logo
Title
n

Noam Banay

03/15/2023, 1:57 PM
Hey, I’m using a dedicated Github repository as a storage for all my flows. Some of the codes of my flows are stored in another Github repository. I’m using Github block to migrate the code (with
get_directory
function) and execute the code with flow decorator. For example:
from prefect import flow


@flow
def example:():
    with open("my/code/path.py") as f:
        exec(f.read())
I want to know if this is the best practice to do it and also how can I make sure the code that I’m migrating from the other repository is up-to-date before the flow start to run Thanks