raphaelauv commented on a change in pull request #4890: [AIRFLOW-4048] 
HttpSensor provide-context to response_check
URL: https://github.com/apache/airflow/pull/4890#discussion_r292990375
 
 

 ##########
 File path: airflow/sensors/http_sensor.py
 ##########
 @@ -81,8 +89,10 @@ def poke(self, context):
                                      headers=self.headers,
                                      extra_options=self.extra_options)
             if self.response_check:
-                # run content check on response
-                return self.response_check(response)
+                if self.provide_context:
+                    return self.response_check(response, context)
 
 Review comment:
   This was my first proposition but @Fokko proposed another one ( you can 
check )

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to