kaxil commented on code in PR #67962:
URL: https://github.com/apache/airflow/pull/67962#discussion_r3463379358
##########
providers/http/src/airflow/providers/http/operators/http.py:
##########
@@ -209,6 +209,12 @@ def paginate_sync(self, response: Response) -> Response |
list[Response]:
return all_responses
def execute_async(self, context: Context) -> None:
+ if self.method.upper() not in ("GET", "HEAD", "OPTIONS"):
+ self.log.warning(
+ "HttpOperator with deferrable=True and method=%s may send
duplicate requests if the Triggerer restarts.",
+ self.method,
+ )
Review Comment:
I don't think we should warn users! Rather just run before deferring
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]