private void removeTask(String topologyId, int taskId, StormClusterState clusterState)
     throws Exception {
   Set<Integer> taskIds = new HashSet<Integer>(taskId);
   clusterState.remove_task(topologyid, taskIds);
   Map<Integer, TkHbCacheTime> TkHbs = data.getTaskHeartbeatsCache(topologyid, false);
   if (TkHbs != null) {
     TkHbs.remove(taskId);
   }
 }