Completed applications remain linked to a queue and never cleaned up. This is a similar problem as we have seen in
The problem is however larger than just keeping it linked and not cleaning up:
- the completedApplications map in the queue is not safe for appID reuse as the map key is the application ID without suffix.
- a dynamic queue is removed when empty: a newly created queue with the same path does not have any history which is incorrect
- the completedApplications map in the queue is never cleaned up