Skip to content

Add preload scripts to configuration #2121

Description

@mrocklin

Users can provide a --preload script to their dask-worker or dask-scheduler commands to launch custom code during execution. This is pragmatic when you want to extend Dask with plugins, but somewhat annoying to do every time.

We might add two entries to the configuration distribued.scheduler.preloads and distributed.worker.preloads that are lists of scripts or imports to pass to the Worker and Scheduler on startup. This should be the default within the worker.py::WorkerBase and scheduler.py::Scheduler constructors.

This was first suggested, I think, by @lesteve

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueClearly described and easy to accomplish. Good for beginners to the project.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions