code: public List<JobExecutionInfo> queryByJobName(String name, int resultsLimit) throws RemoteInvocationException {
      JobExecutionQuery query = new JobExecutionQuery();
      query.setIdType(QueryIdTypeEnum.JOB_NAME);
      query.setId(JobExecutionQuery.Id.create(name));
      query.setIncludeTaskExecutions(false);
      query.setLimit(resultsLimit);
  
      return executeQuery(query);
    }
docs: Query jobs by name
  
  @param name         Name of the job to query for
  @param resultsLimit Max # of results to return
  @return List of jobs with the name (empty list if none can be found)