ray.exceptions.TaskCancelledError# exception ray.exceptions.TaskCancelledError(task_id: ray._raylet.TaskID | None = None, error_message: str | None = None)[source]# Raised when this task is cancelled. Parameters: task_id – The TaskID of the function that was directly cancelled.