ferruzzi commented on a change in pull request #20814:
URL: https://github.com/apache/airflow/pull/20814#discussion_r782589340



##########
File path: airflow/providers/amazon/aws/hooks/logs.py
##########
@@ -99,7 +97,7 @@ def get_log_events(
 
             yield from events
 
-            if 'nextForwardToken' in response:
+            if next_token != response['nextForwardToken']:

Review comment:
       Should we use `response.get('nextForwardToken', None)` to avoid any 
chance of a  KeyError here, or do we know for sure that will always be included 
in the response?




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