Apache Airflow version
2.9.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I am extending the DAG class in a class file, and importing it and creating an object did not list my DAG, but creating a DAG object worked. So after a while I figured out the scheduler does not add the DAG if it does not detect the string "airflow" inside the code.
What you think should happen instead?
It should go through the code to see if a DAG object exists in the code, or this should be mentioned in the documentation.
How to reproduce
- Make a class file and a class which extends the DAG class, should not have airflow in the name.
- Create the DAG file in your DAG folder, and import the class into the file. Make sure the word "airflow" is not in the file.
- Your DAG will not be registered
Operating System
Ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
2.9.1
If "Other Airflow 2 version" selected, which one?
No response
What happened?
I am extending the DAG class in a class file, and importing it and creating an object did not list my DAG, but creating a DAG object worked. So after a while I figured out the scheduler does not add the DAG if it does not detect the string "airflow" inside the code.
What you think should happen instead?
It should go through the code to see if a DAG object exists in the code, or this should be mentioned in the documentation.
How to reproduce
Operating System
Ubuntu
Versions of Apache Airflow Providers
No response
Deployment
Virtualenv installation
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct