code: void markSuccess() {
      // It's possible that the dag is killed before this method is called.
      assertRunningOrKilling();
      changeStatus(Status.SUCCESS);
      for (final Node child : this.children) {
        child.runIfAllowed();
      }
      this.dag.updateDagStatus();
    }
docs: Transitions the node to the success state.