pyre.nexus.Pool¶
Module Contents¶
-
class
pyre.nexus.Pool.Pool(crew=None, **kwds)¶ Bases:
pyre.nexus.Peer.PeerA process collective that coöperate to carry out a work plan
-
size¶
-
doc= the number of crew members to recruit¶
-
recruiter¶
-
doc= the strategy for recruiting crew members
-
active¶
-
retired¶
-
assemble(self, workplan, **kwds)¶ Assemble a team to execute the set of tasks in my {workplan}
-
vacancies(self)¶ Compute how may recruits are needed to take the team to full strength
-
recruit(self, **kwds)¶ Assemble the team
-
activate(self, crew)¶ Add the given {crew} member to the scheduling queue
-
schedule(self, crew)¶ Add the given {crew} member to the execution schedule
-
submit(self, channel, crew, **kwds)¶ A crew member has reported ready to accept tasks
-
dismiss(self, crew)¶ Dismiss the {crew} member from the team
-