ray.util.dask.RayDaskCallback#
- class ray.util.dask.RayDaskCallback(*args: Any, **kwargs: Any)[source]#
Bases:
CallbackExtends Dask’s
Callbackclass with Ray-specific hooks. When instantiating or subclassing this class, both the normal Dask hooks (e.g. pretask, posttask, etc.) and the Ray-specific hooks can be provided.See
dask.callbacks.Callbackfor usage.Caveats: Any Dask-Ray scheduler must bring the Ray-specific callbacks into context using the
local_ray_callbackscontext manager, since the built-inlocal_callbackscontext manager provided by Dask isn’t aware of this class.Methods
Attributes