vertexWriter.writeVertex(vertex);
// Need to save the vertex changes (possibly)
partition.saveVertex(vertex);
}
if (vertex.isHalted()) {
partitionStats.incrFinishedVertexCount();
}
// Remove the messages now that the vertex has finished computation
messageStore.clearVertexMessages(vertex.getId());
// Add statistics for this vertex