code: func (d *Attempt_Data) State() Attempt_State {
  	if d != nil {
  		switch d.AttemptType.(type) {
  		case *Attempt_Data_Scheduling_:
  			return Attempt_SCHEDULING
  		case *Attempt_Data_Executing_:
  			return Attempt_EXECUTING
  		case *Attempt_Data_Waiting_:
  			return Attempt_WAITING
  		case *Attempt_Data_Finished_:
  			return Attempt_FINISHED
  		case *Attempt_Data_AbnormalFinish:
  			return Attempt_ABNORMAL_FINISHED
  		}
  	}
  	return Attempt_SCHEDULING
  }
docs: // State computes the Attempt_State for the current Attempt_Data