ashb commented on issue #16398:
URL: https://github.com/apache/airflow/issues/16398#issuecomment-875489732
Do you want the run_as_user value of the dag to change based on which user
submits the trigger DAG API call?
That is not currently possible at all, so this is a bigger feature request
than you might realise -- the run_as_user and all other task properties for a
DAG come from the python file, and the python file only, so there's no real
mechansim to control this.
So first step on this: we need to come up with a design for letting some
properties of the dag be overridden based on the DagRun.
We have `dagrun.conf` already, which is one possible way, but that is only
accessible to DAGs via template (i.e. `{{
dag_run.conf.some_param }}`) which only applies to some fields.
🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]