Skip to content

Add team_name to DagRunProtocol to match the DagRun Pydantic model.#68403

Open
dkranchii wants to merge 1 commit into
apache:mainfrom
dkranchii:sync-dagrunprotocol-team-name
Open

Add team_name to DagRunProtocol to match the DagRun Pydantic model.#68403
dkranchii wants to merge 1 commit into
apache:mainfrom
dkranchii:sync-dagrunprotocol-team-name

Conversation

@dkranchii

Copy link
Copy Markdown
Contributor

DagRun.team_name was added in #65617 ("Add team name to task CTX") and is
exposed to user code via context["dag_run"].team_name and the
AIRFLOW_CONTEXT_TEAM_NAME env var, but DagRunProtocol (the type used
for Context["dag_run"]) was last synced before that change in #65347 and
did not pick the field up. Type checkers therefore flag
context["dag_run"].team_name as [attr-defined] even though the access
is correct at runtime.

Follow-up to #65347 / #67216, same pattern.

@dkranchii dkranchii force-pushed the sync-dagrunprotocol-team-name branch from 6ea808d to dc47cdb Compare June 11, 2026 19:25
@vincbeck vincbeck requested a review from o-nikolas June 11, 2026 19:38
@eladkal eladkal force-pushed the sync-dagrunprotocol-team-name branch from dc47cdb to fcda014 Compare June 12, 2026 07:12
@eladkal eladkal added this to the Airflow 3.3.0 milestone Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants