rawwar commented on code in PR #46950:
URL: https://github.com/apache/airflow/pull/46950#discussion_r1966433770
##########
providers/amazon/src/airflow/providers/amazon/aws/hooks/glue.py:
##########
@@ -245,6 +246,9 @@ def display_logs_from(log_group: str, continuation_token:
str | None) -> str | N
for response in paginator.paginate(
logGroupName=log_group,
logStreamNames=[run_id],
+ startTime=int(
+ (datetime.now() - timedelta(hours=24)).timestamp() *
1000
+ ), # 24 hours ago in milliseconds
Review Comment:
We can definitely have an instance variable within hook that we can use to
across as a startTime. Not really sure if we should hard code this. But, open
to ideas.
--
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]