You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Greg Lira <hr...@gmail.com> on 2016/07/13 14:52:41 UTC
Passing XCOM variables from parent DAG to child DAG
Hi,
We want to push an XCom in the parent dag and then use (pull) it in our
SubDAGs.Can't get this working in airflow.
Is it supported? How can we use that?
Thanks,
Greg
Re: Passing XCOM variables from parent DAG to child DAG
Posted by Jeremiah Lowin <jl...@apache.org>.
Hi Greg,
This should be possible. When you pull the XCom, you can specify key,
task_id, and dag_id. By default, it only pulls from the same DAG, so try
setting the DAG_id to match the parent.
J
On Wed, Jul 13, 2016 at 2:34 PM Greg Lira <hr...@gmail.com> wrote:
> Hi,
>
> We want to push an XCom in the parent dag and then use (pull) it in our
> SubDAGs.Can't get this working in airflow.
> Is it supported? How can we use that?
>
> Thanks,
> Greg
>