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

   ### Apache Airflow version
   
   2.8.3
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Receive a 500 Internal server error when accessing task instance logs for 
tasks that are no longer part of the current DAG structure. 
   
   ### What you think should happen instead?
   
   We should properly retrieve the logs for these types of tasks.
   
   ### How to reproduce
   
   1. Create a DAG with 6 Tasks and run them - all is fine:
   
![image](https://github.com/apache/airflow/assets/34171166/43554bc6-b643-40b3-87dc-19c56f5f571d)
   
   2. Remove 2 tasks - they do not appear in the Grid View (expected):
   
![image](https://github.com/apache/airflow/assets/34171166/6cc17951-544f-4aa7-8b68-7063721bb636)
   
   3. Go to `taskinstance/list/` pane - Task Instances for removed tasks are 
still present (expected):
   
![image](https://github.com/apache/airflow/assets/34171166/20be2869-c857-4f95-81ba-d87401d975fa)
   
   4. Access the removed tasks to see the logs - logs never load. Via Chrome 
dev tools, I can see a generic error:
   
![image](https://github.com/apache/airflow/assets/34171166/c68b8ad6-ff17-4824-93f3-676860cb18df)
   
![image](https://github.com/apache/airflow/assets/34171166/98782948-943a-4d99-bc46-45fb44f81fc1)
   Webserver logs show exact python exception:
   
![image](https://github.com/apache/airflow/assets/34171166/ff95efca-6ff1-4899-ad13-2e6fba244dfc)
   
   
   
   ### Operating System
   
   Debian GNU/Linux 11 (bullseye)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   N/A
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to