Skip to content

Conversation

@kanga333
Copy link
Contributor

closes: #21573

When EcsTaskLogFetcher Thread receives a stop signal during a sleep period, run method doesn't get cloud watch events that are happened during sleep. So, we need to call get_log_events after sleep to get all cloud watch logs.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon AWS/Amazon - related issues labels Feb 15, 2022
@kanga333 kanga333 changed the title Get log events after sleep to get all logs ECSOperator: Get log events after sleep to get all logs Feb 15, 2022
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! Thanks!

@potiuk potiuk merged commit 21a90c5 into apache:main Feb 15, 2022
@kanga333 kanga333 deleted the ecs_operator_get_all_logs branch February 15, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ECS Operator doesn't get logs from cloudwatch when ecs task has finished within 30 seconds.

2 participants