-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add dag run_id to Audit Log #37597
Comments
👋 Hey Brent, this is a good idea. Feel free to assign to me if you want a hand, I've got some capacity in the next week or two. |
Thanks @SamWheating. We migrated most things from |
I guess that depends, should we add the empty column and then start populating it moving forwards, or should we aim to repopulate the run_id for previous Log rows based on a join with the DagRun table (similar to this) Not really sure what the standard is here, and this migration might be pretty hefty due to the potentially high volume of the Log table. Thoughts, @bbovenzi ? |
I'm not opposed to only populating it moving forward. Going through old logs and translating |
Description
In event logs, we keep track of
dag_id
andtask_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 useexecution_date
but it would be better for us to switch torun_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?
Code of Conduct
The text was updated successfully, but these errors were encountered: