Skip to content

Cannot import the DAG file with _config suffix. #43575

Closed Answered by rawwar
yc0 asked this question in Q&A
Discussion options

You must be logged in to vote

so, by default 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=globand it did not ignore my dag(file namedexample_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

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rawwar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Can't Reproduce The problem cannot be reproduced pending-response area:core needs-triage label for new issues that we didn't triage yet area:dag-parsing
2 participants
Converted from issue

This discussion was converted from issue #43537 on November 01, 2024 08:47.