Check for duplicate task name in a cluster.