You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/07 01:16:47 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #13499: Add a new argument for HttpSensor to accept a list of http status code to Continue Poking

kaxil commented on a change in pull request #13499:
URL: https://github.com/apache/airflow/pull/13499#discussion_r553054929



##########
File path: airflow/providers/http/sensors/http.py
##########
@@ -90,7 +96,8 @@ def __init__(
         self.headers = headers or {}
         self.extra_options = extra_options or {}
         self.response_check = response_check
-
+        self.acceptable_status_code = acceptable_status_code or []
+        self.acceptable_status_code.append(404)

Review comment:
       I agree `response_check` is there for exactly that reason to allow multiple use-cases




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org