Airflow Version : 1.10.0
Following this guide I have created sensors folder and my_sensor.py, I have added the import and use of the
[...]
from sensors.my_sensor import MySensor
[...]
wait_something = MySensor(task_id='taskA')
[...]
Unfortunately Airflow complains when trying to reload the DAG, as follows:
Broken DAG: [/usr/local/airflow/dags/my_dag.py] No module named 'sensors'
I have also restarted the server just to be sure.
The following sentence (from the aforementioned guide) makes me wonder if I failed to update this PATH variable, but I cannot find it anywhere and I have no clue:
When Airflow is running, it will add dags/, plugins/, and config/ to PATH
PS: I don't want to use Plugins, the point of that guide is to provide an alternative way to load custom operators/sensors/hooks without using Plugins