vincbeck commented on code in PR #30756:
URL: https://github.com/apache/airflow/pull/30756#discussion_r1173057580


##########
airflow/providers/amazon/aws/hooks/logs.py:
##########
@@ -96,7 +104,15 @@ def get_log_events(
 
             yield from events
 
-            if next_token != response["nextForwardToken"]:
+            if "nextForwardToken" not in response:
+                num_consecutive_empty_response += 1

Review Comment:
   That was the condition we were using before #20814. [See 
here](https://github.com/apache/airflow/pull/20814/files#diff-3a03bd96408e5044757e85307f1fd83e7e86d2723212c6b36d34e6f500e4790bL102).



-- 
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]

Reply via email to