airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Wells (JIRA)" <>
Subject [jira] [Created] (AIRFLOW-2147) Add 'sensors' attribute for plugins
Date Sun, 25 Feb 2018 23:56:00 GMT
Edward Wells created AIRFLOW-2147:

             Summary: Add 'sensors' attribute for plugins
                 Key: AIRFLOW-2147
             Project: Apache Airflow
          Issue Type: Improvement
          Components: plugins
    Affects Versions: Airflow 1.8
            Reporter: Edward Wells

{{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

View raw message