Skip to content

Gantt Chart Broken After Deleting a Task #23546

Closed

Description

@joelossher

Apache Airflow version

2.2.5

What happened

After a task was deleted from a DAG we received the following message when visiting the gantt view for the DAG in the webserver.

{
  "detail": null,
  "status": 404,
  "title": "Task delete-me not found",
  "type": "https://airflow.apache.org/docs/apache-airflow/2.2.5/stable-rest-api-ref.html#section/Errors/NotFound"
}

This was only corrected by manually deleting the offending task instances from the task_instance and task_fail tables.

What you think should happen instead

I would expect the gantt chart to load either excluding the non-existent task or flagging that the task associated with task instance no longer exists.

How to reproduce

  • Create a DAG with multiple tasks.
  • Run the DAG.
  • Delete one of the tasks.
  • Attempt to open the gantt view for the DAG.

Operating System

Debian GNU/Linux 11 (bullseye)

Versions of Apache Airflow Providers

No response

Deployment

Other Docker-based deployment

Deployment details

Custom docker container hosted on Amazon ECS.

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. boring-cyborg commented on May 6, 2022

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template!

  2. added
    area:UIRelated to UI/UX. For Frontend Developers.
    and removed on May 6, 2022
  3. bbovenzi commented on May 9, 2022

    @bbovenzi
    Contributor

    If you want to submit a PR, the error seems to come from trying to get extra links of a deleted task

  4. joelossher commented on May 9, 2022

    @joelossher
    ContributorAuthor

    If you want to submit a PR, the error seems to come from trying to get extra links of a deleted task

    Thanks for the pointer! I'll put together a PR.

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

Metadata

Metadata

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.area:webserverWebserver related Issueskind:bugThis is a clearly a bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions