MethodupdateTaskUpdates a task with the given status. Status is written to zookeeper. If the task is in error, then the healthchecks are stopped and state is removed
scheduler/src/main/java/org/apache/mesos/elasticsearch/scheduler/state/ClusterState.java:205