markovmodel / adaptivemd

A python framework to run adaptive Markov state model (MSM) simulation on HPC resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better worker control

jhprinz opened this issue · comments

Add shortcuts to shutdown all workers, etc. Or find a nice way to do something with all workers at the same time.

project.workers.shutdown()

# equivalent to
for w in project.workers:
    w.shutdown()

This is in there. You can do

projects.workers.all.execute('shutdown')