You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Bolke de Bruin (JIRA)" <ji...@apache.org> on 2018/01/19 17:57:00 UTC

[jira] [Resolved] (AIRFLOW-1950) Make xcom_pull's task_ids parameter optional

     [ https://issues.apache.org/jira/browse/AIRFLOW-1950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bolke de Bruin resolved AIRFLOW-1950.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.10.0

Issue resolved by pull request #2902
[https://github.com/apache/incubator-airflow/pull/2902]

> Make xcom_pull's task_ids parameter optional
> --------------------------------------------
>
>                 Key: AIRFLOW-1950
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1950
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: models
>    Affects Versions: Airflow 1.8, Airflow 1.7.0
>            Reporter: Beau Barker
>            Assignee: Beau Barker
>            Priority: Minor
>              Labels: usability
>             Fix For: 1.10.0
>
>
> The xcom_pull methods require a {{task_ids}} parameter to specify which task pushed the value.
> However you can pass None to bypass this filter, which says "give me the process_id value, regardless of which task pushed it".
> {{ti.xcom_pull(task_ids=None, key='process_id')}}
> Since task_ids is optional, we should make it an optional parameter.
> {{ti.xcom_pull(key='process_id')}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)