Skip to content

"Error fetching the logs. Try number 0 is invalid" for tasks skipped because upstream tasks failed #55514

@sortega

Description

@sortega

Apache Airflow version

3.0.6

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

No response

What happened?

When a task is skipped because an upstream task failed, we get a confusing error message when selecting the logs tab.

Image

What you think should happen instead?

We should get the same message as when a task is skipped for other reasons

How to reproduce

  1. Create any dag in which one task depends on another and make the first fail.
  2. Select the second task instance in the UI
  3. See the error

Operating System

macOS 15.6.1

Versions of Apache Airflow Providers

Independent of providers

Deployment

Virtualenv installation

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions