class documentation

class PlacementPreference(dict): (source)

View In Hierarchy

Placement preference to be used as an element in the list of preferences for :py:class:`Placement` objects. Args: strategy (string): The placement strategy to implement. Currently, the only supported strategy is ``spread``. descriptor (string): A label descriptor. For the spread strategy, the scheduler will try to spread tasks evenly over groups of nodes identified by this label.

Method __init__ Undocumented
def __init__(self, strategy, descriptor): (source)

Undocumented