stephen-bracken opened a new issue, #68575:
URL: https://github.com/apache/airflow/issues/68575

   ### Description
   
   Add a `bundle_name` attribute that references the dag bundle which populated 
a given dag object.
   
   ### Use case/motivation
   
   Make it easier to identify which dag bundle a dag originates from, which 
enables creating bundle based dag policies, e.g. filtering example dags out of 
the policy list or setting team specific policies:
   
   ```{python}
   @hookimpl
   def dag_policy(dag: DAG):
       if dag.bundle_name == "example_dags":
           return # skip validating example dags
       if dag.bundle_name == "special_dags":
            ... # special dag policy
   ```
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a 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