Package Products :: Package ZenHub :: Module interfaces :: Class IWorkerSelectionAlgorithm
[hide private]
[frames] | no frames]

Class IWorkerSelectionAlgorithm

source code

zope.component.interfaces.Interface --+
                                      |
                                     IWorkerSelectionAlgorithm

Strategy class for selecting eligible zenhub workers for a given function. A default strategy will be created with simple selection algorithm, additional named strategies (named by zenhub service method) can be defined using more elaborate algorithms.

Instance Methods [hide private]
 
getCandidateWorkerIds(workerlist, options)
For a given list of workers/worker state and configured options, return a generator of valid worker id's.
source code
Method Details [hide private]

getCandidateWorkerIds(workerlist, options)

source code 

For a given list of workers/worker state and configured options, return a generator of valid worker id's. This will factor in concepts of priority and allocation, to accommodate methods that are short duration and high-frequency, and those of long duration and low-frequency (but may also potentially come in bursts).