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)
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:then from another session one could easily connect to that same set of resources via:
Under the hood this would just be something like