HttpSensor
DAG-Factory supports the HttpSensor from the airflow.providers.http.sensors.http
package.
The example below demonstrates the response_check logic in a Python file:
task_2:
operator: airflow.providers.http.sensors.http.HttpSensor
http_conn_id: 'test-http'
method: 'GET'
response_check_name: check_sensor
response_check_file: /path/to/example1/http_conn.py
dependencies: [task_1]
The response_check
logic can also be provided as a lambda: