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

Support logs pulling in KubernetesJobOperator #40252

Open
2 tasks done
pykenny opened this issue Jun 15, 2024 · 0 comments
Open
2 tasks done

Support logs pulling in KubernetesJobOperator #40252

pykenny opened this issue Jun 15, 2024 · 0 comments
Assignees
Labels
kind:feature Feature Requests provider:cncf-kubernetes Kubernetes provider related issues

Comments

@pykenny
Copy link

pykenny commented Jun 15, 2024

Description

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.

Related issues

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@pykenny pykenny added kind:feature Feature Requests needs-triage label for new issues that we didn't triage yet labels Jun 15, 2024
@shahar1 shahar1 added provider:cncf-kubernetes Kubernetes provider related issues and removed needs-triage label for new issues that we didn't triage yet labels Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature Feature Requests provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

No branches or pull requests

2 participants