ray.exceptions.TaskCancelledError#

exception ray.exceptions.TaskCancelledError(task_id: Optional[<MagicMock name='mock.TaskID' id='140264772968960'>] = None, error_message: Optional[str] = None)[source]#

Raised when this task is cancelled.

Parameters

task_id – The TaskID of the function that was directly cancelled.

PublicAPI: This API is stable across Ray releases.