code: private boolean isDuplicateOrIgnorableStatusUpdate(Optional<SingularityTaskStatusHolder> previousTaskStatusHolder, final SingularityTaskStatusHolder newTaskStatusHolder) {
      if (!previousTaskStatusHolder.isPresent()) {
        return true;
      }
  
      if (!previousTaskStatusHolder.get().getTaskStatus().isPresent()) { // this is our launch state
        return false;
      }
  
      return previousTaskStatusHolder.get().getTaskStatus().get().getState() == newTaskStatusHolder.getTaskStatus().get().getState();
    }
docs: 1- we have a previous update, and this is a duplicate of it (ignore) 2- we don't have a
  previous update, 2 cases: a - this task has already been destroyed (we can ignore it then) b -
  we've never heard of this task (very unlikely since we first write a status into zk before we
  launch a task)