Skip to main content
Ctrl+K
Try Ray with $100 credit — Start now
Ray 2.59 enables token authentication by default for local clusters, and Ray 2.61 extends it to all clusters. Read the rollout details

Site Navigation

  • Get Started

  • Use Cases

  • Example Gallery

  • Library

    • Ray CoreScale general Python applications

    • Ray DataScale data ingest and preprocessing

    • Ray TrainScale machine learning training

    • Ray TuneScale hyperparameter tuning

    • Ray ServeScale model serving

    • Ray RLlibScale reinforcement learning

  • APIs

  • Resources

    • Discussion ForumGet your Ray questions answered

    • TrainingHands-on learning

    • BlogUpdates, best practices, user-stories

    • EventsWebinars, meetups, office hours

    • Success StoriesReal-world workload examples

    • EcosystemLibraries integrated with Ray

    • CommunityConnect with us

Try Managed Ray

Site Navigation

  • Get Started

  • Use Cases

  • Example Gallery

  • Library

    • Ray CoreScale general Python applications

    • Ray DataScale data ingest and preprocessing

    • Ray TrainScale machine learning training

    • Ray TuneScale hyperparameter tuning

    • Ray ServeScale model serving

    • Ray RLlibScale reinforcement learning

  • APIs

  • Resources

    • Discussion ForumGet your Ray questions answered

    • TrainingHands-on learning

    • BlogUpdates, best practices, user-stories

    • EventsWebinars, meetups, office hours

    • Success StoriesReal-world workload examples

    • EcosystemLibraries integrated with Ray

    • CommunityConnect with us

Try Managed Ray

Loading API navigation…

  • Ray APIs
  • Ray integrations API
  • Dask on Ray API

Dask on Ray API#

For usage, see Using Dask on Ray.

RayDaskCallback

Extends Dask's Callback class with Ray-specific hooks.

_ray_presubmit

Run before submitting a Ray task.

_ray_postsubmit

Run after submitting a Ray task.

_ray_pretask

Run before executing a Dask task within a Ray task.

_ray_posttask

Run after executing a Dask task within a Ray task.

_ray_postsubmit_all

Run after Ray submits all tasks.

_ray_finish

Run after Ray finishes executing all Ray tasks and returns the final result.

previous

synchronize

next

RayDaskCallback

Edit on GitHub
Thanks for the feedback!
Was this helpful?
Yes
No
Feedback
Submit

© Copyright 2026, The Ray Team.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.18.0.