Skip to content
Discussion options

You must be logged in to vote

Update: I found the solution!

The issue was caused by the subdir parameter in my Git Bundle configuration.
The Root Cause:
In my initial configuration, I had the subdir argument set to "dags":

{
  "name": "TESTBED2",
  "classpath": "airflow.providers.git.bundles.git.GitDagBundle",
  "kwargs": {
    "git_conn_id": "GITHUB__airflow-testbed2",
    "subdir": "dags", // This was the culprit
    "tracking_ref": "AIRFLOW-DEPLOY/develop",
    "refresh_interval": 60
  }
}

When subdir is specified in the Git Bundle configuration, Airflow treats that specific subdirectory as the root for DAG discovery and, crucially, adds only that subdirectory to the sys.path.

Since my internal library airflow_lib/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by uplsh580
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants