def wait_for_task_to_end(task_id, poll_rate_secs = 15)
      begin
        @task.wait_for_task_to_end(task_id, poll_rate_secs)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
def wait_for_task_to_end(task_id, poll_rate_secs = 15)
      begin
        @task.wait_for_task_to_end(task_id, poll_rate_secs)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
Waits for a 3PAR task to end.

 ==== Attributes

 * task_id - The Id of the task to be waited upon.
      type task_id: Integer
 * poll_rate_secs - The polling interval in seconds.
      type poll_rate_secs: Integer