The GitHub Actions job "Tests" on 
airflow.git/fix/eks-pod-operator-credential-refresh-issue-57585 has failed.
Run started by GitHub user aviralgarg05 (triggered by o-nikolas).

Head commit for run:
8fd41b7a27753e2affccb530fc7c92eaee13a2ce / aviralgarg05 <[email protected]>
Fix log duplication in KubernetesPodOperator during retries

When KubernetesPodOperator retries due to credential expiration (or other
reasons), it restarts log fetching from the beginning, causing duplicated logs.

This change updates PodManager to track the last captured log timestamp for
each container. When fetch_requested_container_logs is called again (during 
retry),
it resumes fetching logs from the last recorded timestamp.

Changes:
- Add container_log_times to PodManager to track progress
- Update fetch_container_logs to save the last timestamp
- Update fetch_requested_container_logs and fetch_requested_init_container_logs
  to use the saved timestamp as 'since_time'

This ensures seamless log streaming even across retries.

Report URL: https://github.com/apache/airflow/actions/runs/19730417185

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to