Hi, Is there any way to cancel multiple object reference at once? Here is the definition of ray.cancel: def cancel(object_ref: "ray.ObjectRef", *, force: bool = False, recursive: bool = True):
So I cannot do this:
Thank you. I use Ray to process images and often need to cancel multiple tasks if one of them failed. Batching cancel requests could be have better performance than manual loop.
I see. How big of a performance improvement would you have if you had the ability to cancel in batch? If it’s large then we can add that to the GitHub issue for prioritization
When some tasks fail, dozens to hundreds of related tasks may be canceled. I think batching cancel request can reduce the number of RPCs, and it will make the code more concise.