code: func (s *SchedulerServer) getJob(ctx context.Context, ref *scheduler.JobRef) (*engine.Job, error) {
  	jobID := ref.GetProject() + "/" + ref.GetJob()
  	switch job, err := s.Engine.GetVisibleJob(ctx, jobID); {
  	case err == nil:
  		return job, nil
  	case err == engine.ErrNoSuchJob:
  		return nil, status.Errorf(codes.NotFound, "no such job or no READ permission")
  	default:
  		return nil, status.Errorf(codes.Internal, "internal error when fetching job: %s", err)
  	}
  }
docs: //// Private helpers.
  // getJob fetches a job, checking READER ACL.
  //
  // Returns grpc errors that can be returned as is.