for idx := range edgeStacks {
        edgeStack := &edgeStacks[idx]
        if _, ok := edgeStack.Status[endpoint.ID]; ok {
            delete(edgeStack.Status, endpoint.ID)
            err = tx.EdgeStack().UpdateEdgeStack(edgeStack.ID, edgeStack)