You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Edgar Rodriguez (JIRA)" <ji...@apache.org> on 2018/01/10 22:59:00 UTC

[jira] [Created] (AIRFLOW-1985) Subdag tasks do not work with impersonation

Edgar Rodriguez created AIRFLOW-1985:
----------------------------------------

             Summary: Subdag tasks do not work with impersonation
                 Key: AIRFLOW-1985
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1985
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Edgar Rodriguez
            Assignee: Edgar Rodriguez


When using {{run_as_user}} for impersonation, airflow creates a subset of the configuration to make it available for the task during execution via {{base_task_runner.py}}. This behavior is consistent for the triggering the subdag task.
The above code path is not executed when running tasks within a subdag using the {{SequentialExecutor}}, where each task is run direcly.

Note that in the context of subdags, tasks running for the subdags are already running in the same context of the user, so no additional impersonation is needed, but since it's not guaranteed that the user has the right configuration settings (hence why we copy a subset of the configuration during impersonation), we need to propagate those settings for the tasks within the subdag as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)