}
private void stopTask(Map<StageType, GlobalTask> tasks, StageType taskType) {
GlobalTask task = tasks.remove(taskType);
if (task != null) {
task.shutdown();
logger.info("INFO ## taskName = {} has shutdown", taskType);
} else {
logger.info("INFo ## taskName = {} is not started", taskType);
}