airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <>
Subject [jira] [Commented] (AIRFLOW-6057) Add op_args and op_kwargs in PythonSensor templated fields
Date Mon, 30 Dec 2019 14:12:00 GMT


ASF subversion and git services commented on AIRFLOW-6057:

Commit cb288cef0bf046ad362f329d6e4bfd30ce0e9917 in airflow's branch refs/heads/v1-10-test
from Mustafa Gök
[;h=cb288ce ]

[AIRFLOW-6057] Update template_fields of the PythonSensor (#6656)

Add op_args and op_kwargs to the template_fields of the PythonSensor.

(cherry picked from commit 6614ea71f61fa330634d3b51a9e0453a780f0f98)

> Add op_args and op_kwargs in PythonSensor templated fields
> ----------------------------------------------------------
>                 Key: AIRFLOW-6057
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: contrib, operators
>    Affects Versions: 1.10.7
>            Reporter: Mustafa Gök
>            Assignee: Mustafa Gök
>            Priority: Minor
>             Fix For: 1.10.8
> Similar Issue: AIRFLOW-1814
> Let's say we have a method that returns True or False and we want to use it with PythonSensor,
but since the method is used in other applications, we don't want to edit this method by adding
some XCom pulling code.
> If op_args and op_kwargs are added to the template_fields of the PythonSensor, Jinja
template can be used.
> Note: I am not sure about Components and Affects Versions fields of this issue.

This message was sent by Atlassian Jira

View raw message