private void changeFlowQueueStatus(Flow.Status status) throws IOException {
LOG.info(String.format("Changing flowQueueStatus from %s to %s",
flowQueueKey.getStatus(), status));
FlowQueueKey newQueueKey = new FlowQueueKey(flowQueueKey.getCluster(), status,
flowQueueKey.getTimestamp(), flowQueueKey.getFlowId());
hRavenPool.submit(new HRavenQueueRunnable(flowQueueService, flowQueueKey, newQueueKey));
flowQueueKey = newQueueKey;
}