I am trying to use PythonSensor in my dag but I am unable to import it.
from airflow.sensors.python_sensor import PythonSensor
wait_for_stg_completion = PythonSensor(
task_id='wait_for_stg_completion',
python_callable=fetch_stg_qa_status
)
How can I import it? What else can I try?
from airflow.contrib.sensors. python_sensor import PythonSensorwill work for you but it will tell you it's deprecated.