Configure DAG sources
Remote Execution Agents require configuration to access your DAG code. This guide covers configuring DAG bundles, which are collections of DAG files and supporting code introduced in Airflow 3.
This feature requires Airflow 3.x Deployments. Configuring multiple DAG bundles in a single Deployment is only supported in Remote Execution mode.
DAG bundle types
Choose between two types of DAG bundles:
- GitDagBundle: Dags stored in a Git repository (recommended for production)
- LocalDagBundle: Dags stored in the container image or persistent volume (default)
When to use each bundle type
Use GitDagBundle when:
- Running production deployments
- Tracking DAG versions with full rerun capabilities
- Storing dags in version control systems
- Managing multiple teams or DAG repositories
Use LocalDagBundle when:
- Running development or testing environments
- Building dags into container images
- Using existing PVC-based DAG management
- Preferring simpler configuration
See GitDagBundle compared to LocalDagBundle for functional differences.
Configure GitDagBundle
GitDagBundle fetches dags from Git repositories and provides automatic versioning capabilities.
GitDagBundle is recommended for production Remote Execution deployments.
Supported authentication methods
GitDagBundle supports the following authentication methods:
- Access tokens (personal access tokens, OAuth tokens)
- SSH keys
- SSH agent
Choose the method that aligns with your security requirements and infrastructure.
Configure public repository
For public repositories, no authentication configuration is required. Configure only the repository URL and tracking reference:
Configure private repository
For private repositories, configure both the DAG bundle and an Airflow connection for authentication.
Create Git connection
Add an Airflow connection environment variable in values.yaml. The connection name suffix must match the git_conn_id value in your DAG bundle configuration.
The connection name AIRFLOW_CONN_GIT_REPO creates a connection with ID git_repo. This ID must match the git_conn_id value in your DAG bundle configuration.
For production environments, store connection credentials in a secrets backend instead of values.yaml.
Configure refresh interval
Control how frequently agents check for repository updates using the refresh_interval parameter:
The default refresh interval is 300 seconds. Reducing this value across many bundles may increase the risk of hitting Git provider rate limits.
Configure LocalDagBundle
LocalDagBundle reads dags from the local filesystem. This is the default dag bundle type.
DAG storage options
Choose one of two methods to provide dags to agents:
Option 1: Include dags in container image
Build a custom agent image that includes your DAG files. Copy dags into the /dags folder during image build.
Option 2: Mount Persistent Volume Claim
Create a PVC containing your dags and mount it into all agent components (Dag Processor, Worker, and Triggerer) at the same path.
Configure DAG path
LocalDagBundle looks for dags in /dags by default. Specify a different path using the path parameter:
Configure with container image
Configure with Persistent Volume Claim
GitDagBundle compared to LocalDagBundle
Both bundle types support DAG versioning in the Airflow UI, but GitDagBundle provides additional capabilities:
DAG versioning
Airflow 3 automatically tracks DAG versions when you use DAG bundles. Each DAG run associates with a specific DAG version visible in the Airflow UI.
Key behaviors:
- New versions are created for structural changes (tasks, dependencies, schedules)
- The scheduler uses the latest DAG version to create new runs
- You can view code for any previous DAG version in the UI
- GitDagBundle allows rerunning tasks with their original code version
See Airflow DAG versioning for detailed information about versioning behavior.
Next steps
After configuring DAG sources:
- Deploy Remote Execution project - Build and deploy your Airflow project
- Configure logging - Set up task log collection
- Configure OpenLineage - Enable data lineage tracking