Content-Length: 288449 | pFad | http://github.com/apache/airflow/issues/50945

AE Make available user who triggered the DAG manually in dag_run.conf · Issue #50945 · apache/airflow · GitHub
Skip to content

Make available user who triggered the DAG manually in dag_run.conf #50945

Open
mahesh-murugan-39/airflow
#1
@rolfschleiss

Description

@rolfschleiss

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/apache/airflow/issues/50945

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy