Skip to content

Add dag run_id to Audit Log #37597

@bbovenzi

Description

@bbovenzi

Description

In event logs, we keep track of dag_id and task_id when relevant. But any task action is happening to a task instance but it is hard to tell which task instance it was. Sometimes, we use execution_date but it would be better for us to switch to run_id.

Use case/motivation

With a run_id field,
We could filter the audit log and see only events that happened in a single dag run.
We could link directly to the task instance in question. Right now we can only link to the general dag.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions