You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/19 17:57:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16332648#comment-16332648 ]
ASF subversion and git services commented on AIRFLOW-1950:
----------------------------------------------------------
Commit e7c118da2229f508d1f7c9423488aa5df96a2081 in incubator-airflow's branch refs/heads/master from [~bcb]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=e7c118d ]
[AIRFLOW-1950] Optionally pass xcom_pull task_ids
Changes the `task_ids` parameter of xcom_pull from
required to optional.
This parameter has always allowed None to be
passed, but since it's a
required parameter, it must be specified as such.
With this change, we're no longer forced to pass
it.
Closes #2902 from bcb/make-xcom-pull-task-ids-
optional
> 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)