You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Beau Barker (JIRA)" <ji...@apache.org> on 2017/12/22 22:08:00 UTC

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

Beau Barker created AIRFLOW-1950:
------------------------------------

             Summary: 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


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
(v6.4.14#64029)