code: public Optional<SingularityTaskState> getTaskState(String taskId) {
      final Function<String, String> requestUri = (host) -> String.format(TRACK_BY_TASK_ID_FORMAT, getApiBase(host), taskId);
      return getSingle(requestUri, "track by task id", taskId, SingularityTaskState.class);
    }
docs: Get the current state of a task by its task ID, will only search active/inactive tasks, not pending
  
  @param taskId
  The task ID to search for
  
  @return
  A {@link SingularityTaskState} if the task was found among active or inactive tasks