ferruzzi commented on code in PR #30756:
URL: https://github.com/apache/airflow/pull/30756#discussion_r1173974181
##########
airflow/providers/amazon/aws/hooks/logs.py:
##########
@@ -69,14 +77,15 @@ def get_log_events(
| 'message' (str): The log event data.
| 'ingestionTime' (int): The time in milliseconds the event
was ingested.
"""
+ num_consecutive_empty_response = 0
next_token = None
while True:
if next_token is not None:
- token_arg: dict[str, str] | None = {"nextToken": next_token}
+ token_arg: dict[str, str] = {"nextToken": next_token}
else:
token_arg = {}
- response = self.get_conn().get_log_events(
+ response = self.conn.get_log_events(
Review Comment:
Thanks for including this update :heart:
--
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]