bmll-henri opened a new issue #19256:
URL: https://github.com/apache/airflow/issues/19256


   ### Apache Airflow version
   
   main (development)
   
   ### Operating System
   
   Ubuntu 20.04.3 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   I've ended up with a collection of DAGs and naturally went to create a 
`utils` file with a `create_dag` function. Doing this meant I would have a dag 
file looking something like:
   
   ```
   ...
   code
   ...
   dag = create_dag()
   ```
   
   Because I no longer needed to import airflow on this file, the file did not 
contain the word airflow. What I realised after is DAGBAG searches for both 
words DAG and Airflow. Is there not a more secure way to register a dag?
   
   ### What you expected to happen
   
   Airflow to still know a dag exists in a file even if I don't use the word 
airflow, or atleast still try the file.
   
   ### How to reproduce
   
   Don't use the word dag or airflow in your file
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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