You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/06 20:07:02 UTC

[GitHub] [airflow] joelossher opened a new issue, #23546: Gantt Chart Broken After Deleting a Task

joelossher opened a new issue, #23546:
URL: https://github.com/apache/airflow/issues/23546

   ### 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?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] joelossher commented on issue #23546: Gantt Chart Broken After Deleting a Task

Posted by GitBox <gi...@apache.org>.
joelossher commented on issue #23546:
URL: https://github.com/apache/airflow/issues/23546#issuecomment-1121382785

   > If you want to submit a PR, the error seems to come from [trying to get extra links of a deleted task](https://github.com/apache/airflow/blob/main/airflow/www/views.py#L3313)
   
   Thanks for the pointer! I'll put together a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #23546: Gantt Chart Broken After Deleting a Task

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #23546:
URL: https://github.com/apache/airflow/issues/23546#issuecomment-1119972502

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] bbovenzi commented on issue #23546: Gantt Chart Broken After Deleting a Task

Posted by GitBox <gi...@apache.org>.
bbovenzi commented on issue #23546:
URL: https://github.com/apache/airflow/issues/23546#issuecomment-1121304028

   If you want to submit a PR, the error seems to come from [trying to get extra links of a deleted task](https://github.com/apache/airflow/blob/main/airflow/www/views.py#L3313)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] bbovenzi closed issue #23546: Gantt Chart Broken After Deleting a Task

Posted by GitBox <gi...@apache.org>.
bbovenzi closed issue #23546: Gantt Chart Broken After Deleting a Task
URL: https://github.com/apache/airflow/issues/23546


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org