Skip to content

Airflow task_fail table does not have some failures #42482

@dgrewal-tc

Description

@dgrewal-tc

Apache Airflow version

Other Airflow 2 version (please specify below)

If "Other Airflow 2 version" selected, which one?

2.9.2

What happened?

We are pulling in data from Airflow's task_fail table mentioned here
image

We have a task with retires are set to 0
image

When this task fails, there are no more retries and the DAG state becomes 'failed'. When this happens , the records are not logged in task_fail table. When the retires are greater than 0, this works perfectly fine and the failed tasks are logged.

Can you please check what is happening ?

What you think should happen instead?

No response

How to reproduce

Set task retry to 0 and check task_fail table

Operating System

Amazon Linux. VERSION=2023

Versions of Apache Airflow Providers

No response

Deployment

Amazon (AWS) MWAA

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions