romanzdk opened a new issue, #35019:
URL: https://github.com/apache/airflow/issues/35019
### Apache Airflow version
2.7.2
### What happened
KubernetesPodOperator doubles some of the logs. Example output:
```
[2023-10-18, 13:23:50 UTC] {pod_manager.py:351} WARNING - Pod not yet
started: some-pod-name-j26p33vl
[2023-10-18, 13:23:51 UTC] {before.py:40} INFO - Starting call to
'***.providers.cncf.kubernetes.utils.pod_manager.PodManager.fetch_container_logs.<locals>.consume_logs',
this is the 1st time calling it.
...
[2023-10-18, 13:24:00 UTC] {pod_manager.py:437} INFO - [base]
[1;37m[1697635432.6957748][some-pod-name-j26p33vl][app-name-production][app-name][INFO]
Some app log[0m
[2023-10-18, 13:24:17 UTC] {pod_manager.py:437} INFO - [base]
[1;37m[1697635457.1289246][some-pod-name-j26p33vl][app-name-production][app-name][INFO]
Some more app log[0m
...
[2023-10-18, 13:24:18 UTC] {pod_manager.py:483} WARNING - Pod
some-pod-name-j26p33vl log read interrupted but container base still running
[2023-10-18, 13:24:19 UTC] {before.py:40} INFO - Starting call to
'***.providers.cncf.kubernetes.utils.pod_manager.PodManager.fetch_container_logs.<locals>.consume_logs',
this is the 1st time calling it.
[2023-10-18, 13:24:00 UTC] {pod_manager.py:437} INFO - [base]
[1;37m[1697635432.6957748][some-pod-name-j26p33vl][app-name-production][app-name][INFO]
Some app log[0m
[2023-10-18, 13:24:17 UTC] {pod_manager.py:437} INFO - [base]
[1;37m[1697635457.1289246][some-pod-name-j26p33vl][app-name-production][app-name][INFO]
Some more app log[0m
[2023-10-18, 13:24:19 UTC] {pod_manager.py:582} INFO - Pod
some-pod-name-j26p33vl has phase Running
[2023-10-18, 13:24:21 UTC] {pod.py:824} INFO - Deleting pod:
some-pod-name-j26p33vl
```
### What you think should happen instead
No double logs
### How to reproduce
Airflow 2.7.2, Kubernetes provider 7.7.0, KubernetesPodOperator
### Operating System
Debian GNU/Linux 10 (buster)
### Versions of Apache Airflow Providers
apache-airflow-providers-amazon==8.7.1
apache-airflow-providers-cncf-kubernetes==7.7.0
apache-airflow-providers-common-sql==1.7.2
apache-airflow-providers-ftp==3.5.2
apache-airflow-providers-http==4.5.2
apache-airflow-providers-imap==3.3.2
apache-airflow-providers-postgres==5.6.1
apache-airflow-providers-slack==8.1.0
apache-airflow-providers-sqlite==3.4.3
### Deployment
Other Docker-based deployment
### Deployment details
On-premise kubernetes cluster, LocalExecutor (3 replicas), 10 parallelism
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]