code: func (s *adminServer) GetDebugJobState(c context.Context, r *schedulerpb.JobRef) (resp *internal.DebugJobState, err error) {
  	switch state, err := s.Engine.GetDebugJobState(c, r.Project+"/"+r.Job); {
  	case err == engine.ErrNoSuchJob:
  		return nil, status.Errorf(codes.NotFound, "no such job")
  	case err != nil:
  		return nil, err
  	default:
  		return &internal.DebugJobState{
  			Enabled:    state.Job.Enabled,
  			Paused:     state.Job.Paused,
  			LastTriage: google.NewTimestamp(state.Job.LastTriage),
  			CronState: &internal.DebugJobState_CronState{
  				Enabled:       state.Job.Cron.Enabled,
  				Generation:    state.Job.Cron.Generation,
  				LastRewind:    google.NewTimestamp(state.Job.Cron.LastRewind),
  				LastTickWhen:  google.NewTimestamp(state.Job.Cron.LastTick.When),
  				LastTickNonce: state.Job.Cron.LastTick.TickNonce,
  			},
  			ManagerState:        state.ManagerState,
  			ActiveInvocations:   state.Job.ActiveInvocations,
  			FinishedInvocations: state.FinishedInvocations,
  			RecentlyFinishedSet: state.RecentlyFinishedSet,
  			PendingTriggersSet:  state.PendingTriggersSet,
  		}, nil
  	}
  }
docs: // GetDebugJobState implements the corresponding RPC method.