Closed johnlinp closed 3 years ago
Hi, @johnlinp. The behavior you're seeing is a design decision by choice. The primary reason being able to traverse through and explore the historical executions for auditing purposes. It is more relevant for batch-job executions, too.
We have an open issue (contributions welcome!) to add the on-demand option to clean up the executions either individually or as a whole. There are, of course, repercussions to doing it if someone accidentally cleans them up.
All that said, the fact that you're seeing the task status for a re-created task definition, that seems odd. @mminella: Perhaps the CD flow is wrongly connecting to the previously executed task's status?
All of the statuses are based on name, so if the name is recycled, then that is a risk. We could explore making names globally unique but what would have wide ranging impacts (CTR, properties, etc).
Description: When destroying a task definition, I expect the related execution records to be deleted too. However, it seems that's not the case.
Release versions: 2.6.0
Steps to reproduce: