airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fokko Driesprong (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AIRFLOW-2147) Add 'sensors' attribute for plugins
Date Fri, 02 Mar 2018 08:31:00 GMT

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

Fokko Driesprong resolved AIRFLOW-2147.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

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

> Add 'sensors' attribute for plugins
> -----------------------------------
>
>                 Key: AIRFLOW-2147
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2147
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: plugins
>    Affects Versions: Airflow 1.8
>            Reporter: Edward Wells
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> I created a pull request: https://github.com/apache/incubator-airflow/pull/3075
> {{airflow.plugins_manager.AirflowPlugin}} has attributes for operators, hooks, executors,
macros, admin_views, flask_blueprints and menu_links, but not for sensors.
> Right now, operators/sensors can be imported like:
> {{    from airflow.operators.test_plugin import PluginOperator}}
> It would be intuitive to have sensors importable similarly like:
> {{    from airflow.sensors.test_plugin import PluginSensorOperator}} 
> The first time I wrote a plugin I instinctively did it this way until I realized I had
to bundle both operators and sensors into operators



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

Mime
View raw message