Skip to content

Commit 7e1c9ad

Browse files
XD-DENGAlice Berard
authored and
Alice Berard
committed
[AIRFLOW-2959] Refine HTTPSensor doc (apache#3809)
HTTP Error code other than 404, or Connection Refused, would fail the sensor itself directly (no more poking).
1 parent 225e5d7 commit 7e1c9ad

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

airflow/sensors/http_sensor.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@
2828

2929
class HttpSensor(BaseSensorOperator):
3030
"""
31-
Executes a HTTP get statement and returns False on failure:
32-
404 not found or response_check function returned False
31+
Executes a HTTP GET statement and returns False on failure caused by
32+
404 Not Found or `response_check` returning False.
33+
34+
HTTP Error codes other than 404 (like 403) or Connection Refused Error
35+
would fail the sensor itself directly (no more poking).
3336
3437
:param http_conn_id: The connection to run the sensor against
3538
:type http_conn_id: string

0 commit comments

Comments
 (0)