Skip to content

Add bundle_name to Dag objects #68575

Closed

Description

@stephen-bracken

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:

@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

Activity

  1. added
    kind:feature
    needs-triage
    on Jun 15, 2026
  2. jroachgolf84 commented on Jun 15, 2026

    @jroachgolf84
    Collaborator

    Happy to take a spin at this one!

  3. self-assigned this
    on Jun 15, 2026
  4. removed
    needs-triage
    on Jun 15, 2026
  5. jroachgolf84 commented on Jun 15, 2026

    @jroachgolf84
    Collaborator

    PR opened for this: #68583

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:corekind:feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions