mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 10:01:50 +08:00
Add WorkerCrashedError to cancel docs (#10534)
This commit is contained in:
@@ -1612,7 +1612,8 @@ def cancel(object_ref, *, force=False):
|
||||
Only non-actor tasks can be canceled. Canceled tasks will not be
|
||||
retried (max_retries will not be respected).
|
||||
|
||||
Calling ray.get on a canceled task will raise a TaskCancelledError.
|
||||
Calling ray.get on a canceled task will raise a TaskCancelledError or a
|
||||
WorkerCrashedError if ``force=True``.
|
||||
|
||||
Args:
|
||||
object_ref (ObjectRef): ObjectRef returned by the task
|
||||
|
||||
Reference in New Issue
Block a user