Skip to content

Support for Kubernetes Executor side task attempt logging for failed tasks in case of task pods doesn't reach running state #37435

Open

Description

@dirrao

Description

Right now, when the tasks fail due to pod launch failures or the pod is stuck in the pending phase, then the task logs from the UI are empty. It is very inconvenient for airflow consumers to debug it. They might not have access to the scheduler logs. I believe we can push these failure reasons from the Kubernetes executor to task attempt logs (remote). So, that airflow consumers can able to see task failure reasons from the UI.

Use case/motivation

Right now, when the tasks fail due to pod launch failures or the pod is stuck in the pending phase, then the task logs from the UI are empty. It is very inconvenient for airflow consumers to debug it.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    needs-triagelabel for new issues that we didn't triage yet
    and removed
    needs-triagelabel for new issues that we didn't triage yet
    on Feb 15, 2024
  2. bllamasy commented on Mar 20, 2024

    @bllamasy

    I'm having this problem in some randoms tasks and I'm not able to find out what is happening with these tasks. Solving this issue will help a lot.
    I'm using kubernetes executor, airflow 2.8.3 and apache-airflow-providers-cncf-kubernetes | 8.0.0 . Everything deployed in eks k8s 1.27

  3. dirrao commented on Aug 10, 2024

    @dirrao
    ContributorAuthor

    @jedcunningham / @hussein-awala
    Can you add your thoughts on this?
    is it good idea to write the log message from scheduler to remote storage?
    How can we generalize this to all remote storages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions