Skip to content

More convenient way to create the scheduler-file #1741

@jhamman

Description

@jhamman

The concept of a "scheduler file" is a nice, convenient way to share scheduler information when working on a system where you won't know the scheduler address a priori. I would like to suggest a simple method, probably on Client, that creates such a "scheduler file" with a simple interface like this:

from distributed import Client
client = Client()
client.to_scheduler_file('path-to-a-file.json')

then from another session one could easily connect to that same set of resources via:

from distributed import Client
client = Client(scheduler_file='path-to-a-file.json')

Under the hood this would just be something like

json.dump(client.scheduler_info(), 'path-to-a-file.json', indent=2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions