Skip to content

Commit

Permalink
[AIRFLOW-2959] Refine HTTPSensor doc
Browse files Browse the repository at this point in the history
HTTP Error code other than 404,
or Connection Refused, would fail the sensor
itself directly (no more poking).

This is not clear enough in the documentation.
  • Loading branch information
XD-DENG committed Aug 26, 2018
1 parent acf1378 commit d0f7fb6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions airflow/sensors/http_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@

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

0 comments on commit d0f7fb6

Please sign in to comment.