Automatically register new flows? #3707
Unanswered
younggalois
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Is there a mechanism to automatically register flows/new flows if a local agent is running, without having to manually run e.g.
flow.register(...)
on each one?In airflow, I believe they have a process that regularly scans for any files with
dag
in the name in the specified airflow home folder, then searches them for DAG objects. And if it finds them it loads them so they are accessible through the UI without having to manually 'register' them.Does something similar exist for prefect. So for example if I just created the following file test_flow.py, without necessarily running it or adding
flow.run_agent()
is there a way for it to just be magically registered and accessible through the UI :) - just by it simply existing in the proper place?I could write a script that has similar behavior to the airflow process to scan a folder and register flows at regular intervals, but I wonder if it's a bit hacky or if there is a better solution and I'm justing thinking too much in terms of airflow?
Beta Was this translation helpful? Give feedback.
All reactions