code: public Optional<SingularityTaskHistory> getHistoryForTask(String taskId) {
      final Function<String, String> requestUri = (host) -> String.format(TASK_HISTORY_FORMAT, getApiBase(host), taskId);
  
      return getSingle(requestUri, "task history", taskId, SingularityTaskHistory.class);
    }
docs: Retrieve information about an inactive task by its id
  
  @param taskId
  The task ID to search for
  @return
  A {@link SingularityTaskIdHistory} object if the task exists