Skip to content

Conversation

@suii2210
Copy link
Contributor

Fixes #60610

TaskInstance.get_dagrun() could return None when the dag_run relationship
was marked as loaded but unset, which occurs in early lifecycle phases such as
task_instance_mutation_hook.
This change ensures the DagRun is fetched from the database in that case,
restoring access to DagRun.conf without altering lifecycle semantics.

@suii2210 suii2210 requested review from XD-DENG and ashb as code owners January 17, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No dag run/context in task_instance_mutation_hook

1 participant