// Remove a task from a cluster func CompleteTask(clusterName string, zk *zookeeper.Conn, taskId string) { p := path.Join("/", clusterName, "tasks", taskId) zk.Delete(p, -1) log.Printf("Deleted task %s (%s)", taskId, p) }