GitHub user rawwar added a comment to the discussion: Cannot import the DAG 
file with _config suffix.

so, by default 
[dag_ignore_file_syntax](https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#dag-ignore-file-syntax)
 is set to regex. And, it looks like `.config/*` is getting matched with any 
file with suffix config`. I tried setting 
`AIRFLOW__CORE__DAG_IGNORE_FILE_SYNTAX=glob` and it did not ignore my dag(file 
named `example_config.py`)


Just tested. 
```
In [2]: re2.findall(r".config/*", "example_config.py")
Out[2]: ['_config']
```

Solution for you is to use glob syntax and set 
AIRFLOW__CORE__DAG_IGNORE_FILE_SYNTAX=glob

GitHub link: 
https://github.com/apache/airflow/discussions/43575#discussioncomment-11119897

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to