def cancel_task(task_id)
      begin
        @task.cancel_task(task_id)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
def cancel_task(task_id)
      begin
        @task.cancel_task(task_id)
      rescue => ex
        Util.log_exception(ex, caller_locations(1, 1)[0].label)
        raise ex
      end
    end
Cancel a 3PAR task

 ==== Attributes

 * task_id - The Id of the task to be cancelled.
      type task_id: Integer
 ==== Raises

 * Hpe3parSdk::HTTPBadRequest
        - NON_ACTIVE_TASK - The task is not active at this time.
 * Hpe3parSdk::HTTPConflict
        - INV_OPERATION_CANNOT_CANCEL_ TASK - Invalid operation: Task cannot be cancelled.