Matt Land commented on AIRFLOW-1500:

We had a similar need- to patch the environment variables at run time.

We achieved it by extending the DockerOperator into a new class in 
/airflow/plugins, and evaluate the xcom in the pre_execute hook.

> Allow dynamic assignment of volumes in DockerOperator
> -----------------------------------------------------
>                 Key: AIRFLOW-1500
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1500
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: docker
>            Reporter: Gerald Vasend
>            Priority: Minor
> Currently the DockerOperator allows dynamic command modification via 
> literal_eval allowing injection of xcom variables. Would like to do the same 
> for volumes. I have tried using a function but need task_instance to access 
> xcom and it is not available outside execution of the operator

This message was sent by Atlassian JIRA

Reply via email to