code: func (impl *adminImpl) GetJobState(c context.Context, id *api.JobID) (*api.JobState, error) {
  	job, err := impl.ctl.GetJob(c, mapper.JobID(id.JobId))
  	if err != nil {
  		return nil, toStatus(err)
  	}
  	cfg := &api.JobConfig{}
  	if err := proto.Unmarshal(job.Config.Params, cfg); err != nil {
  		return nil, toStatus(errors.Annotate(err, "failed to unmarshal JobConfig").Err())
  	}
  	info, err := job.FetchInfo(c)
  	if err != nil {
  		return nil, toStatus(err)
  	}
  	return &api.JobState{Config: cfg, Info: info}, nil
  }
docs: // GetJobState implements the corresponding RPC method, see the proto doc.