Hi -
I’m very new to prefect (previously and currently using Airflow) and engineering, so I apologize if these seem like silly questions. Wondering:
• What is the ideal structure? For example, airflow wants a separate project dedicated to just airflow stuff (dags, operators, hooks, plugins, etc) independent from the actual app. Ideally, I would like to host all prefect stuff in a separate ec2 from the app. Which leads to the next question…
• My app is in Django; as a result, I would need to import models to use the django ORM. The app is a private project in github running on an ec2. Currently, with Airflow, I need to import the entire app into the dags folder in order to access the models. Is it possible to pip install a github repo into the prefect stuff and import into each model as needed (without running
django.setup()
)?
• Is there a way to manually trigger a Flow? For example, I design a flow to do some calculations, and I only want it to run if a user clicks a button. Is there an API endpoint I can use to fire it off?
THANKS!