-
Advice needed how to use Airflow in an enterprise setup. Current setupWe have a monorepo for DAGs and two Airflow instances:
Deployment uses the Git-Sync sidecar, which works fine. New DAGs are developed (and tested with unit tests) on feature branches. ChallengeBefore merging a feature branch into dev or main, we want to test the new DAG on the corresponding Airflow instance. Goal: Deploy DAGs from a feature branch to dev or prod for pre-merge testing without affecting the main DAGs. QuestionWhat is the recommended workflow to achieve this in an enterprise Airflow setup?
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yes, you can safely deploy feature-branch DAGs to dev/prod — but use namespaced DAG IDs to avoid collisions. Best practice: feature DAGs → dev cluster (isolated from prod) → ephemeral DAG IDs → tested → merge → promoted. For large orgs, ephemeral Airflow per branch is the cleanest but more infra-heavy. |
Beta Was this translation helpful? Give feedback.
Also in Airflow 3 you have bundles and specifically Git Bundles that Airflow natively supports without GitSync. My suggestion is to look at those.