vatsrahul1001 commented on code in PR #36904: URL: https://github.com/apache/airflow/pull/36904#discussion_r1460394293
########## airflow/providers/http/sensors/http.py: ########## @@ -148,3 +158,25 @@ def poke(self, context: Context) -> bool: raise exc return True + + def execute(self, context: Context) -> None: + if not self.deferrable or self.response_check: + super().execute(context=context) + elif not self.poke(context): + self.defer( + timeout=timedelta(seconds=self.timeout), + trigger=HttpSensorTrigger( + endpoint=self.endpoint, + http_conn_id=self.http_conn_id, + data=self.request_params, + headers=self.headers, + method=self.method, + extra_options=self.extra_options, + poke_interval=self.poke_interval, + ), + method_name="execute_complete", + ) + + def execute_complete(self, context: Context, event: bool | None = None) -> None: Review Comment: should not be bool fixed it -- 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. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org