Conditional ignoring of directories from parsing in airflow #61514
Unanswered
manoj121999
asked this question in
Ideas
Replies: 1 comment
-
|
Look https://airflow.apache.org/docs/apache-airflow/3.1.7/core-concepts/dags.html#airflowignore -> the glob syntax actually allows you to negate patterns (in Airflow 3) - similar to .gitignore and effectively implement allowlist. We use it in airflow's .dockerignore for example https://github.com/apache/airflow/blob/main/.dockerignore and you can use similar patterns. This is standard way how you imlement in glob |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
.airflowignorecurrently works as a deny-list only.While it supports ignoring specific files or directories, it does not support
conditional or allow-list based directory traversal.
Because Airflow walks directories before applying ignore rules, patterns like:
This becomes a real limitation in when requirements comes to where:
Proposed Enhancement
Add support for conditional ignore / allow-list semantics, for example:
if dags are under specific folder , we need to allow that and rest of the folders can be ignored.
Beta Was this translation helpful? Give feedback.
All reactions