Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix KubernetesPodOperator duplicating logs when interrupted #33500

Merged
merged 6 commits into from
Aug 24, 2023

Conversation

fdemiane
Copy link
Contributor

The KubernetesPodOperator is duplicating logs when they are interrupted. When calling _client.read_namespaced_pod_log, we were passing an outdated since_seconds: we were not using the latest captured timestamp when computing since_seconds.

closes: #33498

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes provider related issues labels Aug 18, 2023
@eladkal
Copy link
Contributor

eladkal commented Aug 21, 2023

@fdemiane is it ready for review?

@fdemiane fdemiane marked this pull request as ready for review August 22, 2023 11:54
@fdemiane
Copy link
Contributor Author

@fdemiane is it ready for review?

@eladkal Yes, I just converted it from a draft PR, thanks.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

This looks pretty good +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KubernetesPodOperator duplicating logs when they are being interrupted
5 participants