You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support logs pulling in KubernetesJobOperator #40252
In cncf-kubernetes provider, KubernetesPodOperator provides get_logs and log_containers arguments to support pulling logs generated from created Kubernetes pod into task logs, and these arguments are also available in KubernetesJobOperator through class inheritance.
However, KubernetesJobOperator does not implement logs pulling mechanism, so user has no way to transfer pod logs from the created job to task logs within this operator.
Use case/motivation
Supports get_logs and log_containers settings in KubernetesJobOperator when wait_until_job_complete is enabled (otherwise it's user's responsibility to manage logs/output generated from the job).
We can take similar approach used in KubernetesPodOperator to regularly fetch pod logs under the created job.
Activity
pykenny commentedon May 26, 2025
Went back to the topic today and found that it was solved just a month later:
Much appreciate @MaksYermak's support on this issue!