dhawal-rathore opened a new issue, #39802:
URL: https://github.com/apache/airflow/issues/39802

   ### 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
   
   1. Make a class file and a class which extends the DAG class, should not 
have airflow in the name.
   2. 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.
   3. 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?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to