-
Apache Airflow version2.10.2 If "Other Airflow 2 version" selected, which one?No response What happened?The DAG file name goes with What you think should happen instead?No response How to reproducecreate a DAG, and name as wf_sample_config.py. from datetime import datetime
from airflow.decorators import task
from airflow import DAG
with DAG (
dag_id="a_testing_for_naming",
start_date=datetime(2024, 10, 31),
schedule=None
) as dag:
@task
def start(params = None, task=None, ti=None, dag_run=None):
pass
start() You won't see the a_testing_for_naming DAG in your DAG view in the web UI. Operating SystemDebian GNU/Linux 11 (bullseye) Versions of Apache Airflow ProvidersNo response DeploymentOfficial Apache Airflow Helm Chart Deployment detailspython version : python 3.12 Anything else?No response Are you willing to submit PR?
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Before I test this out, I have a quick question: Can you please check your .airflowignore for any entries that might be causing this? EDIT: I just tested this on 2.10.2, and I can't replicate this issue. |
Beta Was this translation helpful? Give feedback.
-
here comes our .airflowignore
|
Beta Was this translation helpful? Give feedback.
-
so, by default dag_ignore_file_syntax is set to regex. And, it looks like Just tested.
Solution for you is to use glob syntax and set AIRFLOW__CORE__DAG_IGNORE_FILE_SYNTAX=glob |
Beta Was this translation helpful? Give feedback.
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 named
example_config.py`)Just tested.
Solution for you is to use glob syntax and set AIRFLOW__CORE__DAG_IGNORE_FILE_SYNTAX=glob