Description
Description
Hello everyone
It should be possible to read out the user name that started a DAG manually.
This user name is required to enter it in the ModifiedBy field during a database update and to display it in the log file for auditing purposes.
If a DAG is started automatically by the scheduler, this field should contain “scheduler”.
Many thanks
Use case/motivation
The user name is needed for audit purposes.
e.g. triggered_by = context['dag_run'].conf.get('triggered_by', 'unknown')
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct