code: public List<CloudTask> getTaskStatusForJob(final String jobId) {
      List<CloudTask> tasks = null;
      try {
        tasks = client.taskOperations().listTasks(jobId);
        LOG.log(Level.INFO, "Task status for job: {0} returned {1} tasks", new Object[]{jobId, tasks.size()});
      } catch (IOException | BatchErrorException ex) {
        LOG.log(Level.SEVERE, "Exception when fetching Task status for job: {0}. Exception [{1}]:[2]",
            new Object[]{jobId, ex.getMessage(), ex.getStackTrace()});
      }
  
      return tasks;
    }
docs: List the tasks of the specified job.
  
  @param jobId the ID of the job.
  @return A list of CloudTask objects.